1
0
mirror of synced 2025-01-31 12:32:59 +03:00

Merge pull request #128 from egulias/master

[Association-Mapping] - Missing many-to-many xml target-entity tag
This commit is contained in:
Guilherme Blanco 2012-10-02 07:30:44 -07:00
commit 3ecce5251b

View File

@ -706,7 +706,7 @@ one is bidirectional.
<doctrine-mapping>
<entity name="User">
<many-to-many field="groups" inversed-by="users">
<many-to-many field="groups" inversed-by="users" target-entity="Group">
<join-table name="users_groups">
<join-columns>
<join-column name="user_id" referenced-column-name="id" />
@ -719,7 +719,7 @@ one is bidirectional.
</entity>
<entity name="Group">
<many-to-many field="users" mapped-by="groups" />
<many-to-many field="users" mapped-by="groups" target-entity="User"/>
</entity>
</doctrine-mapping>