1
0
mirror of synced 2025-01-19 15:01:40 +03:00

#881 DDC-2825 - providing PHP mappings for explicit schema definition

This commit is contained in:
Marco Pivetta 2015-01-14 17:52:51 +01:00
parent 53845b79e1
commit d96cd1b690

View File

@ -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);