Permalink
Browse files

Merge pull request #128 from egulias/master

[Association-Mapping] - Missing many-to-many xml target-entity tag
  • Loading branch information...
2 parents fa29d36 + 742590d commit 3ecce5251bb462a70e70f4a5d3a8180948e2227f @guilhermeblanco guilhermeblanco committed Oct 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 en/reference/association-mapping.rst
@@ -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>

0 comments on commit 3ecce52

Please sign in to comment.