1
0
mirror of synced 2025-02-03 22:09:26 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.DDC807Entity.php
2016-12-07 23:33:41 +01:00

20 lines
360 B
PHP

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