mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Join table required in bidirectional many to many? #5952
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 @hvanoch on GitHub (Apr 17, 2018).
If I do not specify a join table on the many to many relation definition then doctrine schema valdiate command complains:
Code:
Annotations for the Client class
XML for the User class
<many-to-many field="clients" target-entity="AppBundle\Entity\Client" inversed-by="users" />Class looks likes:
If I change the xml definition like below, the validate command does not fail.
doctrine 2.6.1