Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 39 lines (34 sloc) 1.667 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
<?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://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
                              
    <mapped-superclass name="Doctrine\Tests\Models\DDC964\DDC964User">
        <id name="id" type="integer" column="user_id" length="150">
            <generator strategy="AUTO"/>
        </id>
        
        <field name="name" column="user_name" type="string" length="250" nullable="true" unique="false" />

        <many-to-one field="address" target-entity="DDC964Address">
            <cascade>
                <cascade-persist/>
                <cascade-merge/>
            </cascade>
            <join-column name="address_id" referenced-column-name="id"/>
        </many-to-one>

        <many-to-many field="groups" target-entity="DDC964Group" inversed-by="users">
            <cascade>
                <cascade-persist/>
                <cascade-merge/>
                <cascade-detach/>
            </cascade>
            <join-table name="ddc964_users_groups">
                <join-columns>
                    <join-column name="user_id" referenced-column-name="id" />
                </join-columns>
                <inverse-join-columns>
                    <join-column name="group_id" referenced-column-name="id" />
                </inverse-join-columns>
            </join-table>
        </many-to-many>
    </mapped-superclass>
        
</doctrine-mapping>
Something went wrong with that request. Please try again.