Jira issue originally created by user email@example.com:
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.
Comment created by @ocramius:
Issue was closed with resolution "Fixed"
Imported 1 attachments from Jira into https://gist.github.com/0f26d32249023081b554