-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
Fix XSD valdiation deprecation from ORM #1647
Comments
Does the bundle allow to configure several XML drivers or just one? I'm wondering if there will be a global flag, or if it needs to be finer than that. Also, I think the best default value for it will be |
Yes, you can have several drivers if you configure several mappings. And the best value is not |
The bundle registers one XML driver per entity manager as far as I can tell: https://github.com/doctrine/DoctrineBundle/pull/1644/files#diff-afe5f060789287a8ad428a4b5df1ad844184f496ece0297e421f6b1fc442b5a4L1141 |
@stof I suggested using |
Here is how Symfony handles this: symfony/symfony@a4adc3f 🤔 |
We can use kernel.debug as default value, but I guess we still need to implement toggle which can disable deprecation in dev. |
@greg0ire the ORM project triggers a deprecation if you disable it.
The XML driver validates it against the local XSD file. It does not use |
That can be changed.
Oh right, I didn't remember implementing it like that 🤦 Indeed: https://github.com/doctrine/orm/pull/6728/files In that case I guess we can go for |
Fixed in 2.10.0 by exposing a new setting to opt-in for the new behavior. |
I have bundles that add custom Entities to the application by utilizing: $container->addCompilerPass(
DoctrineOrmMappingsPass::createXmlMappingDriver($mappings)
); Is there a way to pass the |
Not yet. I forgot about this feature. I will add support for that for the next version of the bundle. |
Should we reopen this issue so we can keep track on when this is added or maybe create a new one? |
See #1643
We need to agree on an approach so that users can get rid of the deprecation reported by the ORM
The text was updated successfully, but these errors were encountered: