1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.DDC807Entity.php

15 lines
349 B
PHP
Raw Normal View History

2012-02-14 05:22:49 +04:00
<?php
use Doctrine\ORM\Mapping\ClassMetadataInfo;
$metadata->mapField(array(
'id' => true,
'fieldName' => 'id',
));
$metadata->setDiscriminatorColumn(array(
'name' => "dtype",
'columnDefinition' => "ENUM('ONE','TWO')"
));
$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_NONE);