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

[Association-Mapping] - Mising target-entity tag in xml format

In the many to many bidirectional xml format the "target-entity" tag is missing and generates a MappingException when not included.
This commit is contained in:
Eduardo Gulias Davis 2012-10-02 12:15:03 +03:00
parent fa29d36d09
commit 742590d1d7

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>