Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2797

[GH-848] eliminate duplicate placeholders in "walkComparison" function within Que...

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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 bsahlhof:

      Url: https://github.com/doctrine/doctrine2/pull/848

      Message:

      ...ryExpressionVisitor

      I've run into an issue when using Criteria with QueryBuilder when Criteria uses multiple checks on same variable in different context, example:
      field1 = value OR (field1 in values AND field2 = true)... what happens is field 1 placeholder is duplicated, and an error occures in code complaining about invalid # of parameters. The fix eliminates this issue, making sure parametername is unique.

      I have not had time to check any other possible issues this may cause, but a review of the code doesn't appear to impact any other function.

        Activity

        Hide
        Doctrine Bot added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: