Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Git Master
    • Fix Version/s: 2.4
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      Say I have a association as primary key in my entity, and I want to find it by id.
      I'm calling EntityManager#find("MyEntity1", MyEntity2 $entity),
      then it calls UnitOfWork#tryGetById() wich makes implode of sorted ids, and that is error, because sortedId contains object.

      I can implement __toString in my entity, but I think this is work of ORM.
      What are your thoughts?
      I could fix that, but is there some instruction on Doctrine's workflow?

        Activity

        Nikita Nefedov created issue -
        Nikita Nefedov made changes -
        Field Original Value New Value
        Status Open [ 1 ] Awaiting Feedback [ 10000 ]
        Fabio B. Silva made changes -
        Assignee Benjamin Eberlei [ beberlei ] Fabio B. Silva [ fabio.bat.silva ]
        Fabio B. Silva made changes -
        Status Awaiting Feedback [ 10000 ] In Progress [ 3 ]
        Show
        Fabio B. Silva added a comment - Fixed : https://github.com/doctrine/doctrine2/commit/d6d5c341e220ff7aec50c8ecabd5d0b8be2e0804
        Fabio B. Silva made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Nikita Nefedov added a comment -

        What about composite keys? AFAIS, this code checks if id is object, but it could be an array of objects.

        Show
        Nikita Nefedov added a comment - What about composite keys? AFAIS, this code checks if id is object, but it could be an array of objects.
        Benjamin Eberlei made changes -
        Fix Version/s 2.4 [ 10321 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-2084, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Fabio B. Silva
            Reporter:
            Nikita Nefedov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: