projects
/
zf2.biz
/
galerie.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rajout de doctrine/orm
[zf2.biz/galerie.git]
/
vendor
/
doctrine
/
orm
/
tests
/
Doctrine
/
Tests
/
ORM
/
Mapping
/
php
/
Doctrine.Tests.ORM.Mapping.DDC807Entity.php
1
<?php
2
3
use Doctrine\ORM\Mapping\ClassMetadataInfo;
4
5
$metadata->mapField(array(
6
'id' => true,
7
'fieldName' => 'id',
8
));
9
10
$metadata->setDiscriminatorColumn(array(
11
'name' => "dtype",
12
'columnDefinition' => "ENUM('ONE','TWO')"
13
));
14
15
$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_NONE);