[DWEB-99] 5.14. Many-To-Many, Bidirectional Missing target-entity Created: 06/Dec/11  Updated: 06/Dec/11

Status: Open
Project: Doctrine Website
Component/s: Documentation
Affects Version/s: None
Fix Version/s: None

Type: Documentation Priority: Blocker
Reporter: Dennis Assignee: Jonathan H. Wage
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Documentation missing a tag to work



 Description   

<doctrine-mapping>
<entity name="User">
<many-to-many field="groups" inversed-by="users">
<join-table name="users_groups">
<join-columns>
<join-column="user_id" referenced-column-name="id" />
</join-columns>
<inverse-join-columns>
<join-column="group_id" referenced-column-name="id" />
</inverse-join-columns>
</join-table>
</many-to-many>
</entity>

<entity name="Group">
<many-to-many field="users" mapped-by="groups" />
</entity>
</doctrine-mapping>

should be this to work:

<doctrine-mapping>
<entity name="User">
<many-to-many field="groups" inversed-by="users" target-entiy="Group">
<join-table name="users_groups">
<join-columns>
<join-column="user_id" referenced-column-name="id" />
</join-columns>
<inverse-join-columns>
<join-column="group_id" referenced-column-name="id" />
</inverse-join-columns>
</join-table>
</many-to-many>
</entity>

<entity name="Group">
<many-to-many field="users" mapped-by="groups" target-enty="User" />
</entity>
</doctrine-mapping>


Generated at Sun Nov 23 06:14:33 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.