diff --git a/tests/Doctrine/Tests/Models/DDC2825/ExplicitSchemaAndTable.php b/tests/Doctrine/Tests/Models/DDC2825/ExplicitSchemaAndTable.php new file mode 100644 index 000000000..73c83b416 --- /dev/null +++ b/tests/Doctrine/Tests/Models/DDC2825/ExplicitSchemaAndTable.php @@ -0,0 +1,17 @@ +assertArrayHasKey('example_trait_bar_id', $metadataWithoutOverride->associationMappings['bar']['joinColumnFieldNames']); $this->assertArrayHasKey('example_entity_overridden_bar_id', $metadataWithOverride->associationMappings['bar']['joinColumnFieldNames']); } + + /** + * @group DDC-2825 + * @group 881 + */ + public function testSchemaDefinitionViaExplicitTableSchemaAnnotationProperty() + { + /* @var $metadata \Doctrine\ORM\Mapping\ClassMetadata */ + $metadata = $this->createClassMetadataFactory()->getMetadataFor(ExplicitSchemaAndTable::CLASSNAME); + + $this->assertSame('myschema', $metadata->getSchemaName()); + $this->assertSame('mytable', $metadata->getTableName()); + } } /**