#881 DDC-2825 - providing PHP mappings for explicit schema definition
This commit is contained in:
parent
53845b79e1
commit
d96cd1b690
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Doctrine\ORM\Mapping\ClassMetadata;
|
||||
|
||||
/* @var $metadata ClassMetadata */
|
||||
|
||||
$metadata->setPrimaryTable(array(
|
||||
'name' => 'mytable',
|
||||
'schema' => 'myschema',
|
||||
));
|
||||
|
||||
$metadata->mapField(array(
|
||||
'id' => true,
|
||||
'fieldName' => 'id',
|
||||
));
|
||||
|
||||
$metadata->setIdGeneratorType(ClassMetadata::GENERATOR_TYPE_AUTO);
|
Loading…
x
Reference in New Issue
Block a user