How does entity mapping validation work? #7480

Closed
opened 2026-01-22 15:52:10 +01:00 by admin · 0 comments
Owner

Originally created by @ro0NL on GitHub (Feb 27, 2025).

Since we're migrating YAML to PHP attributes, im wondering how the validation works:

$ bin/console doctrine:schema:validate --skip-sync

Mapping
-------

                                                                                                                        
 [OK] The mapping files are correct.            

But when creating a db migration script we see:

In MappingException.php line 357:
                                                                                                                                                                                          
  Class "Some" sub class of "Other" is not a valid entity or mapped super class.
``
Originally created by @ro0NL on GitHub (Feb 27, 2025). Since we're migrating YAML to PHP attributes, im wondering how the validation works: ``` $ bin/console doctrine:schema:validate --skip-sync Mapping ------- [OK] The mapping files are correct. ``` But when creating a db migration script we see: ``` In MappingException.php line 357: Class "Some" sub class of "Other" is not a valid entity or mapped super class. ``
admin closed this issue 2026-01-22 15:52:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7480