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