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
Issue with 2 ODM managers and default mapping #280
Comments
intuitively i feel like you should have to specify all the other locations in your the thing that is particular about the cmf is that many of our bundles provide default models and we register those with doctrine in the bundle configuration with the help of a compilar pass: https://github.com/symfony-cmf/routing-bundle/blob/47be1b0eb96e5ab7db5fa921a0342e38f3915795/src/CmfRoutingBundle.php#L65-L75 i think we could specify more than one manager name - maybe the right fix would be to allow to configure a list of managers https://github.com/symfony-cmf/routing-bundle/blob/47be1b0eb96e5ab7db5fa921a0342e38f3915795/src/DependencyInjection/Configuration.php#L109 do you want to do pull requests to the cmf bundles to add that feature? it needs to be done in a BC way, that is manager_name must still be accepted. |
it looks like the orm is doing the same, you don't usually have an entity registered in more than one manager: https://symfony.com/doc/current/doctrine/multiple_entity_managers.html we certainly should not by default register all documents with all managers. do you want to look further into it or shall we drop the issue? |
Have no other way but to ask. I am trying to use 2 PHPCR ODM document managers for my project.
The problem is that though they have SAME configuration, the complete mapping:info is available only for first one (default). See below:
The second one (secondary) has a problem
As you may see all chain of phpcr namespaces (related to PhpcrMappingPass) are not loaded. So I am unable to use the secondary document manager and get consequent errors like
The text was updated successfully, but these errors were encountered: