mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 09:23:20 +02:00
DDC-1787: Fix for JoinedSubclassPersister, multiple inserts with versioning throws an optimistic locking exception #2252
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Apr 18, 2012).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user jack@actinum.nl:
Attached is a small patch for a bug in the file JoinedSubclassPersister.php. When persisting multiple new entities that are subclasses of a baseclass (joined), and having the @Version attribute set, only for the last one a query is run to fetch the new value of the version field. The other one is tested with NULL, and throws an optimistic locking exception.
@doctrinebot commented on GitHub (Dec 14, 2013):
Comment created by @ocramius:
Merged: https://github.com/doctrine/doctrine2/commit/6f1642b35d56f0609d27a3ff874c456827e90d6b
@doctrinebot commented on GitHub (Dec 14, 2013):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/0f26d32249023081b554