-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Multiple entity managers and shared entities management #12320
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
Conversation
940d21c
to
ae1cb13
Compare
ae1cb13
to
b549b46
Compare
Hi @ipernet! I'm sorry you didn't receive any comment from us on this PR. It's quite a difficult topic and quite a big diff, seems like we all somehow lost this PR.. Do you have any motivation to work on this PR? If so, I would like to say some comments on how to improve this: I think we should make this more concise. We don't have to show all different ways to get the repository - that'll only confuse the user ("which one is the correct/recommended way?"). I think the most important thing here is that you can't use I can also imagine if you no longer have time to work on this PR, please say so then I can take over and make the necessary changes. Seems like there are quite some users running into this issue. |
Hi @wouterj I can still provide support on this PR, I'll have a look later in the day about your feedback, for a start! |
Hi @wouterj Based on the current documentation, your feedback is about adding a single warning, as you explained it very well:
But this would mean that no further details (rather than just showing a basic So I would suggest to add the notice on top of the existing doc then close the PR without merging. It will still be a reference for those digging in the related issues. |
Hi @ipernet. Thanks for your quick responses. I have never been in a situation with multiple entity managers (let alone having an entity in multiple managers). Do you, with your experience, think that it's enough to add the small note or would that not have helped you in the situation you had a year ago? |
@wouterj Yes, the main issue to me was to understand that a |
Thanks for your feedback again! I've created a new PR based on your commit: #14336 This way, I can still give you the credits you deserved (this PR was copy/pasting your examples)! |
…ed by multiple managers (Guillaume) This PR was merged into the 4.4 branch. Discussion ---------- [Doctrine] Add caution about a single entity being managed by multiple managers Fixes #9878 This continues the great work done in #12320 by @ipernet . Commits ------- de39e50 Multiple entity managers and shared entities management
Multiple entity manager doc improvement related to the discussion With multiple Entity Managers (EM) the Repository uses only the mapped EM for the Entity (#9878)