1
0
mirror of synced 2025-01-20 07:21:40 +03:00

Fixed merging issue with sequence identifiers.

This commit is contained in:
Roman S. Borschel 2010-08-07 11:33:33 +02:00
parent 35af98260a
commit 29bf4adac7

View File

@ -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()) {