From c217b33c452bb6b62b24c734e8dc50d94f25d510 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 25 Jul 2010 16:32:04 +0200 Subject: [PATCH] DDC-714 - Bug in refactored persistNew() functionality leads to failure with pre-persist id generators --- lib/Doctrine/ORM/UnitOfWork.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index d98fb7330..f1b5a338e 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -609,7 +609,7 @@ class UnitOfWork implements PropertyChangedListener $idValue = $idGen->generate($this->em, $entity); if ( ! $idGen instanceof \Doctrine\ORM\Id\AssignedGenerator) { $this->entityIdentifiers[$oid] = array($class->identifier[0] => $idValue); - $class->setIdentifierValues($entity, $idValue); + $class->setIdentifierValues($entity, $this->entityIdentifiers[$oid]); } else { $this->entityIdentifiers[$oid] = $idValue; }