1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.Cache.City.dcm.xml

23 lines
1.2 KiB
XML
Raw Normal View History

2013-02-14 02:42:13 +04:00
<?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="Doctrine\Tests\Models\Cache\City" table="cache_city">
<cache usage="READ_ONLY" />
<id name="id" type="integer" column="id">
<generator strategy="IDENTITY"/>
</id>
<field name="name" type="string" column="name" precision="0" scale="0" unique="1" nullable="false"/>
<one-to-many field="attractions" target-entity="Doctrine\Tests\Models\Cache\Attraction" mapped-by="city">
<cache usage="READ_ONLY" />
<order-by>
<order-by-field name="name" direction="ASC"/>
</order-by>
</one-to-many>
<many-to-one field="state" target-entity="Doctrine\Tests\Models\Cache\State" inversed-by="cities">
<cache/>
<join-columns>
<join-column name="state_id" referenced-column-name="id" nullable="1"/>
</join-columns>
</many-to-one>
<many-to-many field="travels" target-entity="Doctrine\Tests\Models\Cache\Travel" mapped-by="visitedCities"/>
</entity>
</doctrine-mapping>