DDC-3243: [GH-1099] Fixed a bug so that a versioned entity with a OneToOne defined as an id can be created #4013

Closed
opened 2026-01-22 14:33:44 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 7, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of MajorCaiger:

Url: https://github.com/doctrine/doctrine2/pull/1099

Message:

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.

Originally created by @doctrinebot on GitHub (Aug 7, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of MajorCaiger: Url: https://github.com/doctrine/doctrine2/pull/1099 Message: 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.
admin added the Bug label 2026-01-22 14:33:44 +01:00
admin closed this issue 2026-01-22 14:33:45 +01:00
Author
Owner

@doctrinebot commented on GitHub (Sep 23, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1099] was closed:
https://github.com/doctrine/doctrine2/pull/1099

@doctrinebot commented on GitHub (Sep 23, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-1099] was closed: https://github.com/doctrine/doctrine2/pull/1099
Author
Owner

@doctrinebot commented on GitHub (Sep 23, 2014):

Issue was closed with resolution "Incomplete"

@doctrinebot commented on GitHub (Sep 23, 2014): Issue was closed with resolution "Incomplete"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4013