Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doctrinebot/193347de10bd18e8b6de to your computer and use it in GitHub Desktop.
Save doctrinebot/193347de10bd18e8b6de to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-714 - https://github.com/doctrine/doctrine2/issues/5227
Index: library/doctrine2.git/lib/Doctrine/ORM/UnitOfWork.php
===================================================================
--- library/doctrine2.git/lib/Doctrine/ORM/UnitOfWork.php (revision 4793)
+++ library/doctrine2.git/lib/Doctrine/ORM/UnitOfWork.php (working copy)
@@ -609,7 +609,7 @@
$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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment