Uploaded image for project: '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
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • 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

        Hide
        doctrinebot Doctrine Bot added a comment -

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

        Show
        doctrinebot Doctrine Bot added a comment - A related Github Pull-Request [GH-1099] was closed: https://github.com/doctrine/doctrine2/pull/1099

          People

          • Assignee:
            ocramius Marco Pivetta
            Reporter:
            doctrinebot Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: