Doctrine: the advantages / disadvantages of a bi-directional relationship

I just want to know what are the advantages / disadvantages of the bi-directional relationship in the Doctrine with Symfony?

All my relationships are bidirectional, but I'm not sure if this will not cause a problem ...

Thank.

+4
source share
1 answer

As long as you donโ€™t mark the relationship as EAGER, I think you are good. go.

, PHP , , Proxy. , . () -, . .

: , : " ?". , . , OneToMany ManyToOne, owning/inverse, WTF/:)

, ...

+2

All Articles