Created
June 30, 2014 07:38
-
-
Save richardudovich/727087bea68dfb8f37e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping | |
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | |
<entity name="AFD\SMSBundle\Entity\Client\Group" table="client_user_group"> | |
<id name="id" type="integer" column="id"> | |
<generator strategy="AUTO" /> | |
</id> | |
<many-to-many field="users" target-entity="AFD\SMSBundle\Entity\Client\User" mapped-by="groups"> | |
<join-table name="client_user_client_user_group"> | |
<join-columns> | |
<join-column id="group_id" name="group_id" referenced-column-name="id" /> | |
</join-columns> | |
<inverse-join-columns> | |
<join-column id="user_id" name="user_id" referenced-column-name="id" /> | |
</inverse-join-columns> | |
</join-table> | |
</many-to-many> | |
</entity> | |
</doctrine-mapping> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment