mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1099] Fixed a bug so that a versioned entity with a OneToOne defined as an id can be created #9156
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?
Original Pull Request: https://github.com/doctrine/orm/pull/1099
State: closed
Merged: No
Changed the visibility of UnitOfWork::flattenIdentifier for use in BasicEntityPersister.
In BasicEntityPersister::fetchVersionValue I have added a line to flatten the id's before fetching the version value.
Without this change, an entity with a OneToOne relationship defined as an Id, with a Version property, could not be created. Rather than trying to use the ID in the query to select the version, the related entity was being passed.