mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Class "xxx" is not a valid entity or mapped super class. #6731
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ThibaultVlacich on GitHub (May 25, 2021).
I'm trying to use the new PHP 8 Attributes coming with ORM 2.9, but as soon as I modify
for
I'm getting this error
In MappingException.php line 378: Class "App\Entity\Video" is not a valid entity or mapped super class.when trying to generate diffs (php bin/console doctrine:migrations:diff).Is the migration bundle incompatible with those new PHP8 attributes, or is there a bug with the implementation (because the error, MappingException, comes from ORM).
@saxap commented on GitHub (May 26, 2021):
got same issue
@michaljusiega commented on GitHub (May 26, 2021):
Because:
1.) In your configuration to Doctrine Bundle you are using AnnotationDriver to mapping your entities.
2.) ORM 2.9 has AttributeDriver.
3.) DoctrineBundle will be soon release marked as 2.4 to make full compatibility with ORM 2.9
@ben29 commented on GitHub (May 26, 2021):
When the bundle will release? Any ETA?
@michaljusiega commented on GitHub (May 27, 2021):
References:
https://github.com/doctrine/DoctrineBundle/pull/1354
https://github.com/doctrine/DoctrineBundle/pull/1353
@ThibaultVlacich commented on GitHub (May 27, 2021):
I'm closing since this is related to doctrine-bundle, and will soon be released it seems like