1
0
mirror of synced 2024-12-13 14:56:01 +03:00

No unique join column fields for Single Table inheritance type.

This commit is contained in:
Sergio Moya 2012-01-26 17:37:50 +01:00
parent 35fc3c0671
commit 88bbee127c

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 {