Skip to content

How does entity mapping validation work? #11850

@ro0NL

Description

@ro0NL

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.
``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions