Skip to content

Incompatibilities with Doctrine MongoDB ODM 2.0Β #2055

@alcaeus

Description

@alcaeus

MongoDB ODM 2.0 introduces schema validation for ODM mapping files. This means that any mapping file containing gedmo extensions will be considered invalid by ODM. ORM used to have an xs:any element in all types to allow for extra elements, but this will no longer be possible in ORM: 3.0: doctrine/orm@af0b0db.

With that said, ODM 2.0 (and most likely ORM 3.0) will require a new way to provide mappings for the extensions when using XML. One option is to no longer load gedmo mappings from the Doctrine mapping files, but instead use separate files for any additional behaviour.

Another option would be to extend the Doctrine schema to extend all types that support gedmo elements. This would require a configurable XSD path for the XML mapping drivers. However, this would require some thinking as to how to guarantee that the mappings are still valid from a Doctrine standpoint (e.g. without the extra gedmo mappings).

As it is, users of MongoDB ODM 2.0 and possibly ORM 3.0 will not be able to use Gedmo extensions.

Edit: cross-referencing original bug report in ODM: doctrine/mongodb-odm#2095

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA confirmed bug in Extensions that needs fixing.Still RelevantMark PRs that might've been auto-closed that are still relevant.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions