Incompatibilities with Doctrine MongoDB ODM 2.0 #2055
Labels
Bug
A confirmed bug in Extensions that needs fixing.
Still Relevant
Mark PRs that might've been auto-closed that are still relevant.
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
The text was updated successfully, but these errors were encountered: