1
0
mirror of synced 2025-01-30 20:11:49 +03:00

Merge branch 'DDC-714'

This commit is contained in:
Benjamin Eberlei 2010-07-25 16:32:13 +02:00
commit 75fa640bfe

View File

@ -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;
}