-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] failed importing doctrine PHP configs in the prepend extension method with multiple bundles with a different connection name #57964
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
Comments
I couldn’t reproduce your issue after applying this fix: #57937. It hasn’t been released yet, but you can test it on the 7.1 dev branch |
can you create a small app that reproduce the issue? |
Yes |
Your demo application uses version 7.1.3 of the DependencyInjection component which does not contain the patch. You need to update to the dev version of 7.1: |
I use it ! |
@jfsenechal, if you place both bundles under the same default connection, you’ll get all mapped entities (proving that it's working). It’s not about the bundle merging strategy not working as expected. You’ll encounter the same issue if you move both |
Btw, I just spotted that there is an |
Closing as it's not a bug. |
Yes you are right i don't use correctly command mapping info |
Symfony version(s) affected
7.1.3
Description
for each bundle I import my doctrine config like this
if I use another connection name only the last config of the bundle is taken into account
How to reproduce
Sample with a bundle named A and an other named B
Disable auto config
Use the patch #57937 who fixed a first problem
Importing config
ABundle
BBundle
Result With the same name "default"
If I change name for A
Only entities in B are mapping
The same if I change connection name in B bundle
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: