#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) {
|
if ($newVal !== null) {
|
||||||
$newValId = $uow->getEntityIdentifier($newVal);
|
$newValId = $uow->getEntityIdentifier($newVal);
|
||||||
}
|
}
|
||||||
@ -669,12 +671,9 @@ class BasicEntityPersister implements EntityPersister
|
|||||||
|
|
||||||
$this->quotedColumns[$sourceColumn] = $quotedColumn;
|
$this->quotedColumns[$sourceColumn] = $quotedColumn;
|
||||||
$this->columnTypes[$sourceColumn] = $targetClass->getTypeOfColumn($targetColumn);
|
$this->columnTypes[$sourceColumn] = $targetClass->getTypeOfColumn($targetColumn);
|
||||||
|
$result[$owningTable][$sourceColumn] = $newValId
|
||||||
$value = ($newVal !== null)
|
|
||||||
? $newValId[$targetClass->getFieldForColumn($targetColumn)]
|
? $newValId[$targetClass->getFieldForColumn($targetColumn)]
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
$result[$owningTable][$sourceColumn] = $value;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user