#1246 DDC-3487 - removing possible undefined value path for $newValId
for clarity
This commit is contained in:
parent
bc268da8c2
commit
a8dcc2acf3
@ -655,6 +655,8 @@ class BasicEntityPersister implements EntityPersister
|
||||
}
|
||||
}
|
||||
|
||||
$newValId = null;
|
||||
|
||||
if ($newVal !== null) {
|
||||
$newValId = $uow->getEntityIdentifier($newVal);
|
||||
}
|
||||
@ -669,12 +671,9 @@ class BasicEntityPersister implements EntityPersister
|
||||
|
||||
$this->quotedColumns[$sourceColumn] = $quotedColumn;
|
||||
$this->columnTypes[$sourceColumn] = $targetClass->getTypeOfColumn($targetColumn);
|
||||
|
||||
$value = ($newVal !== null)
|
||||
$result[$owningTable][$sourceColumn] = $newValId
|
||||
? $newValId[$targetClass->getFieldForColumn($targetColumn)]
|
||||
: null;
|
||||
|
||||
$result[$owningTable][$sourceColumn] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user