Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1977

Undefined index in ParameterTypeInferer

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.3
    • Fix Version/s: 2.3, 2.3.1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:

      Description

      Trying to bind an empty array as a parameter to a raw SQL query results in an undefined index error on line 59.

      https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query/ParameterTypeInferer.php#L59

        Activity

        Matt Button created issue -
        Hide
        Matt Button added a comment -

        One way to work around this is to specify the type of the array as the third parameter to addParameter

        Show
        Matt Button added a comment - One way to work around this is to specify the type of the array as the third parameter to addParameter
        Fabio B. Silva made changes -
        Field Original Value New Value
        Assignee Benjamin Eberlei [ beberlei ] Fabio B. Silva [ fabio.bat.silva ]
        Show
        Fabio B. Silva added a comment - Fixed by : https://github.com/doctrine/doctrine2/commit/ece6a005bcecc4a9e4a154d9379cfbe141370415
        Fabio B. Silva made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.3 [ 10185 ]
        Fix Version/s 2.2.3 [ 10196 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.2.4 [ 10322 ]
        Fix Version/s 2.2.3 [ 10196 ]
        Guilherme Blanco made changes -
        Fix Version/s 2.3.1 [ 10323 ]
        Fix Version/s 2.2.4 [ 10322 ]

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: