Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1651

APC query caching fails when an entity is bound to a query parameter.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.2.1
    • Component/s: DQL, ORM
    • Labels:
      None
    • Environment:
      Debian, Php 5.3, APC 3.1.9

      Description

      When an entity is bound as a query parameter, query caching with APC fails with error message:

      Catchable fatal error: Object of class XXX could not be converted to string in /libs/doctrine-orm/Doctrine/DBAL/Connection.php on line 1081

      If I bind with entity's primary key field, everything works fine.

        Activity

        Jonathan Robinson created issue -
        Hide
        Benjamin Eberlei added a comment -

        Fixed and merged into 2.2 branch.

        A rebase onto the 2.1.x branch would take a rewrite, since the code is completly new and since there is a simple workaround ($entity->getId()) when binding i will not backported it into the 2.1.x branch.

        https://github.com/doctrine/doctrine2/commit/6cd82d77f5e581b3d21c60c5cb5e6c5042a3ff9b

        Show
        Benjamin Eberlei added a comment - Fixed and merged into 2.2 branch. A rebase onto the 2.1.x branch would take a rewrite, since the code is completly new and since there is a simple workaround ($entity->getId()) when binding i will not backported it into the 2.1.x branch. https://github.com/doctrine/doctrine2/commit/6cd82d77f5e581b3d21c60c5cb5e6c5042a3ff9b
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2.1 [ 10194 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13449 ] jira-feedback [ 15231 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15231 ] jira-feedback2 [ 17095 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17095 ] jira-feedback3 [ 19348 ]

        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-1651, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: