mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Bidirection ManyToMany that only works one way #6944
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @toto33331 on GitHub (Mar 8, 2022).
Hi,
I hope I post on the good place. I have a bidirectional ManyToMany that only works on one side (the owning side ? IDK)
Here is some code to explain:
class GlobalContent :
class Groupement:
This code as it is only works if I add/remove some Groupment from a GlobalContent object. From a Groupment object, I can get all the related GlobalContent objects without any problem.
But if I switch the sides (inversedBy + JoinTable and MappedBy) the code only works the other way, if I add/remove some GlobalContent from a Groupment object.
Any suggestion ? I've tried a shitload of things and nothing worked