1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.Company.CompanyContract.dcm.xml

41 lines
1.9 KiB
XML
Raw Normal View History

2012-08-01 05:20:21 +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://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="Doctrine\Tests\Models\Company\CompanyContract" table="company_contracts" inheritance-type="SINGLE_TABLE">
<discriminator-map>
<discriminator-mapping value="fix" class="CompanyFixContract" />
<discriminator-mapping value="flexible" class="CompanyFlexContract" />
<discriminator-mapping value="flexultra" class="CompanyFlexUltraContract" />
</discriminator-map>
<entity-listeners>
2012-08-12 06:48:09 +04:00
<entity-listener class="CompanyContractListener">
<lifecycle-callback type="preFlush" method="preFlushHandler"/>
<lifecycle-callback type="postLoad" method="postLoadHandler"/>
2012-08-01 05:20:21 +04:00
<lifecycle-callback type="postPersist" method="postPersistHandler"/>
<lifecycle-callback type="prePersist" method="prePersistHandler"/>
2012-08-01 05:20:21 +04:00
<lifecycle-callback type="postUpdate" method="postUpdateHandler"/>
<lifecycle-callback type="preUpdate" method="preUpdateHandler"/>
2012-08-01 05:20:21 +04:00
<lifecycle-callback type="postRemove" method="postRemoveHandler"/>
<lifecycle-callback type="preRemove" method="preRemoveHandler"/>
2012-08-01 05:20:21 +04:00
</entity-listener>
</entity-listeners>
<id name="id" type="integer" column="id">
<generator strategy="AUTO"/>
</id>
<field name="completed" column="completed" type="boolean"/>
<!-- Other mappings -->
</entity>
</doctrine-mapping>