By default MikroORM will propagate all changes made to one side of bi-directional relations to the other side, keeping them in sync. This works for all relations, including M:1 and 1:1. As part of the discovery process, all M:1 and 1:1 properties are re-defined as getter/setter.
You can disable this behaviour via
When you use one of
Collection.add() method, the item is added to given collection,
and this action is also propagated to its counterpart.
For M:N this works in both ways, either from owning side, or from inverse side.
Collections on both sides have to be initialized, otherwise propagation won't work.
Although this propagation works also for M:N inverse side, you should always use owning side to manipulate the collection.
Same applies for