1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Merge pull request #273 from smoya/master

No unique join column fields for Single Table inheritance type.
This commit is contained in:
Benjamin Eberlei 2012-02-20 06:55:00 -08:00
commit af07bd7818

View File

@ -1217,7 +1217,7 @@ class ClassMetadataInfo implements ClassMetadata
$uniqueContraintColumns = array();
foreach ($mapping['joinColumns'] as $key => &$joinColumn) {
if ($mapping['type'] === self::ONE_TO_ONE) {
if ($mapping['type'] === self::ONE_TO_ONE && ! $this->isInheritanceTypeSingleTable()) {
if (count($mapping['joinColumns']) == 1) {
$joinColumn['unique'] = true;
} else {