Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1823

Error with IN and UPPER in the same line

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.3
    • Component/s: DQL
    • Security Level: All
    • Labels:
      None

      Description

      I have a problem making a DQL query

      SELECT c.id, c.name
      FROM BrandBundle:Brand c
      WHERE UPPER(c.name) IN (:values)

      :values is an array of possible names of brands.

      The error shown is

      [Syntax Error] line 0, col 109: Error: Expected Doctrine\ORM\Query\Lexer::T_IN, got '('

        Activity

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Aitor Suso
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: