Merge pull request #128 from egulias/master
[Association-Mapping] - Missing many-to-many xml target-entity tag
This commit is contained in:
commit
3ecce5251b
@ -706,7 +706,7 @@ one is bidirectional.
|
|||||||
|
|
||||||
<doctrine-mapping>
|
<doctrine-mapping>
|
||||||
<entity name="User">
|
<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-table name="users_groups">
|
||||||
<join-columns>
|
<join-columns>
|
||||||
<join-column name="user_id" referenced-column-name="id" />
|
<join-column name="user_id" referenced-column-name="id" />
|
||||||
@ -719,7 +719,7 @@ one is bidirectional.
|
|||||||
</entity>
|
</entity>
|
||||||
|
|
||||||
<entity name="Group">
|
<entity name="Group">
|
||||||
<many-to-many field="users" mapped-by="groups" />
|
<many-to-many field="users" mapped-by="groups" target-entity="User"/>
|
||||||
</entity>
|
</entity>
|
||||||
</doctrine-mapping>
|
</doctrine-mapping>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user