41 lines
1.7 KiB
XML
41 lines
1.7 KiB
XML
|
<?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>
|
||
|
<entity-listener class="ContractSubscriber">
|
||
|
<pre-flush method="preFlushHandler"/>
|
||
|
<post-load method="postLoadHandler"/>
|
||
|
|
||
|
<post-persist method="postPersistHandler"/>
|
||
|
<pre-persist method="prePersistHandler"/>
|
||
|
|
||
|
<post-update method="postPersistHandler"/>
|
||
|
<pre-update method="preUpdateHandler"/>
|
||
|
|
||
|
<post-remove method="postRemoveHandler"/>
|
||
|
<pre-remove method="preRemoveHandler"/>
|
||
|
</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>
|