From d96cd1b690b8b63a3ca6f8659d9171dbd564b696 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 14 Jan 2015 17:52:51 +0100 Subject: [PATCH] #881 DDC-2825 - providing PHP mappings for explicit schema definition --- ...ts.Models.DDC2825.ExplicitSchemaAndTable.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.DDC2825.ExplicitSchemaAndTable.php diff --git a/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.DDC2825.ExplicitSchemaAndTable.php b/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.DDC2825.ExplicitSchemaAndTable.php new file mode 100644 index 000000000..27f555944 --- /dev/null +++ b/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.Models.DDC2825.ExplicitSchemaAndTable.php @@ -0,0 +1,17 @@ +setPrimaryTable(array( + 'name' => 'mytable', + 'schema' => 'myschema', +)); + +$metadata->mapField(array( + 'id' => true, + 'fieldName' => 'id', +)); + +$metadata->setIdGeneratorType(ClassMetadata::GENERATOR_TYPE_AUTO);