Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:40
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/0f26d32249023081b554 to your computer and use it in GitHub Desktop.
Save doctrinebot/0f26d32249023081b554 to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-1787 - https://github.com/doctrine/doctrine2/issues/2441
Index: JoinedSubclassPersister.php
===================================================================
--- JoinedSubclassPersister.php (revision 8798)
+++ JoinedSubclassPersister.php (working copy)
@@ -186,6 +186,10 @@
$stmt->execute();
}
+
+ if ($this->_class->isVersioned) {
+ $this->assignDefaultVersionValue($entity, $id);
+ }
}
$rootTableStmt->closeCursor();
@@ -194,10 +198,8 @@
$stmt->closeCursor();
}
- if ($this->_class->isVersioned) {
- $this->assignDefaultVersionValue($entity, $id);
- }
+
$this->_queuedInserts = array();
return $postInsertIds;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment