We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 278572f commit 5bf4499Copy full SHA for 5bf4499
src/ValueObject/FileWithClass.php
@@ -71,6 +71,15 @@ public function isSerialized(): bool
71
public function isEntity(): bool
72
{
73
$fileContents = FileSystem::read($this->filePath);
74
+
75
+ if (str_contains($fileContents, 'Doctrine\ODM\MongoDB\Mapping\Annotations')) {
76
+ return true;
77
+ }
78
79
+ if (str_contains($fileContents, 'Doctrine\ORM\Annotations')) {
80
81
82
83
if (str_contains($fileContents, '@ORM\Entity')) {
84
return true;
85
}
0 commit comments