Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDC-1787: Fix for JoinedSubclassPersister, multiple inserts with versioning throws an optimistic locking exception #2441

Closed
doctrinebot opened this issue Apr 18, 2012 · 3 comments
Assignees
Milestone

Comments

@doctrinebot
Copy link

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
Copy link
Author

Comment created by @Ocramius:

Merged: 6f1642b

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

@doctrinebot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants