Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3243

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

    Details

    • Type: Bug Bug
    • Status: Awaiting Feedback
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: