1
0
mirror of synced 2025-02-03 13:59:27 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.DDC807Entity.php

20 lines
360 B
PHP
Raw Normal View History

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