-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Handle field without mappedBy #6219
Handle field without mappedBy #6219
Conversation
Thank you @VincentLanglet |
I think because of this there should be release 3.72.1 |
I'll make a release today. But it will be 3.73 |
thank you! |
I believe this breaks admins using doctrine MongoDB and embedded collections as there is no mappedBy attribute for these mappings. Example mapping:
Break happens on: ObjectManipulator.php line 56 with error message: 'Notice: Undefined index: mappedBy' I believe you just need to add a check to ensure that if the mappedBy property is not present that instance is returned. I have tested this myself and it has resolved the issue.
Cheers |
HI @cjgordon.
Could be a better way to write this, since As a quick fix, do you want to make the PR ? Also could you dump the |
@VincentLanglet I'll do a PR for this on the weekend. |
Excellent thank you. Apologies for being slack on this. |
That attribute is not guaranteed to exist, that's for example the case of @mongodb\EmbedMany See sonata-project#6219 (comment)
That attribute is not guaranteed to exist, that's for example the case of @mongodb\EmbedMany See #6219 (comment)
Subject
I am targeting this branch, because BC.
Closes #6218.
Changelog