|
@@ -548,7 +548,8 @@ class BasicEntityPersister
|
|
|
} else if ($targetClass->containsForeignIdentifier) {
|
|
|
$result[$owningTable][$sourceColumn] = $newValId[$targetClass->getFieldForColumn($targetColumn)];
|
|
|
} else {
|
|
|
- $result[$owningTable][$sourceColumn] = $newValId[$targetClass->fieldNames[$targetColumn]];
|
|
|
+ if(isset($newValId[$targetClass->fieldNames[$targetColumn]]))
|
|
|
+ $result[$owningTable][$sourceColumn] = $newValId[$targetClass->fieldNames[$targetColumn]];
|
|
|
}
|
|
|
|
|
|
$this->_columnTypes[$sourceColumn] = $targetClass->getTypeOfColumn($targetColumn);
|