Fixed merging issue with sequence identifiers.
This commit is contained in:
parent
35af98260a
commit
29bf4adac7
@ -1405,7 +1405,9 @@ class UnitOfWork implements PropertyChangedListener
|
||||
// Merge state of $entity into existing (managed) entity
|
||||
foreach ($class->reflFields as $name => $prop) {
|
||||
if ( ! isset($class->associationMappings[$name])) {
|
||||
$prop->setValue($managedCopy, $prop->getValue($entity));
|
||||
if ( ! $class->isIdentifier($name)) {
|
||||
$prop->setValue($managedCopy, $prop->getValue($entity));
|
||||
}
|
||||
} else {
|
||||
$assoc2 = $class->associationMappings[$name];
|
||||
if ($assoc2->isOneToOne()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user