Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibilities with Doctrine MongoDB ODM 2.0 #2055

Open
alcaeus opened this issue Nov 5, 2019 · 4 comments
Open

Incompatibilities with Doctrine MongoDB ODM 2.0 #2055

alcaeus opened this issue Nov 5, 2019 · 4 comments
Labels
Bug A confirmed bug in Extensions that needs fixing. Still Relevant Mark PRs that might've been auto-closed that are still relevant.

Comments

@alcaeus
Copy link
Contributor

alcaeus commented Nov 5, 2019

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

@AkenRoberts
Copy link
Member

Excellent information @alcaeus, thank you very much. This will help moving the next versions forward for compatibility.

@phansys phansys added the Bug A confirmed bug in Extensions that needs fixing. label Nov 6, 2021
@github-actions
Copy link

github-actions bot commented May 5, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label May 5, 2022
@franmomu franmomu added Still Relevant Mark PRs that might've been auto-closed that are still relevant. and removed Stale labels May 6, 2022
@rupeshwankhede
Copy link

Is any update on this bug. Facing same issue. I am not able to use gedmo:timestampable with monogb.xml

<gedmo:timestampable on="create"/>

@malarzm
Copy link
Contributor

malarzm commented Jan 16, 2024

FWIW cross referencing doctrine/mongodb-odm#2607 where we try to allow namespaced elements in ODM's schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A confirmed bug in Extensions that needs fixing. Still Relevant Mark PRs that might've been auto-closed that are still relevant.
Projects
None yet
Development

No branches or pull requests

6 participants