Skip to content

Commit

Permalink
DDC-714 - Bug in refactored persistNew() functionality leads to failu…
Browse files Browse the repository at this point in the history
…re with pre-persist id generators
  • Loading branch information
beberlei committed Jul 25, 2010
1 parent 5f109c5 commit c217b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ private function persistNew($class, $entity)
$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;
}
Expand Down

0 comments on commit c217b33

Please sign in to comment.