Created
December 13, 2015 18:40
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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