We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6a5686 commit fa8eeb7Copy full SHA for fa8eeb7
1 file changed
src/Config/SharpConfigBuilder.php
@@ -215,7 +215,8 @@ public function declareEntity(string $entityClass): self
215
216
// prepend _internal to entities located in sharp's source (e.g. PasskeyEntity)
217
// to avoid conflicts with project entities
218
- if (str($entityClass)->startsWith(str(static::class)->explode('\\')->take(2))) {
+ if (str($entityClass)->startsWith('Code16\Sharp')
219
+ && ! str($entityClass)->startsWith('Code16\Sharp\Tests')) {
220
$entityKey = "_internal_$entityKey";
221
}
222
0 commit comments