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

Added the "forceUseAttributeReader" option, which allows you to use AttributeReader automatically #2845

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eisberg
Copy link

@eisberg eisberg commented Jul 20, 2024

Closes #2613 and #2318

Added "forceUseAttributeReader" option to force use of the attribute reader for Gedmo attributes. Even if the project for Entity is in different NS, the XML driver is used.

By setting this option, Gedmo will only use the attribute reader to retrieve Gedmo meta information with entity settings. This does not affect the operation of Doctrine in any way.
The revision allows you to remove the Gedmo mapping from XML files in projects that use an ORM description in XML format.

Because Doctrine now prohibits placing third-party descriptions in XML files that do not comply with the doctrine schema.

The change with this modification is separated from the other MR, where 2 solutions were proposed.

Some projects (Symfony) will also require changes similar to those in the StofDoctrineExtensionsBundle (PR: stof/StofDoctrineExtensionsBundle#458 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XML Validation Error with Doctrine 2.14.2
2 participants