Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1802

DQL parser issue when using FunctionsReturningStrings(...) NOT LIKE

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.2-BETA1, 2.2-BETA2, 2.2.0-RC1, 2.2, 2.2.1, 2.2.2
    • Fix Version/s: 2.3
    • Component/s: DQL
    • Security Level: All
    • Labels:
      None

      Description

      If you create a query like the following, you will get an exception:

      $em->createQuery( "SELECT e FROM MyEntity e WHERE CONCAT(e.name, e.name2) NOT LIKE '%abc%'" );

      The variable $token['type'] is Lexer::T_NOT - https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query/Parser.php#L2238

        Activity

        Martin Hasoň created issue -
        Alexander made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3 [ 10185 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13668 ] jira-feedback [ 15336 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15336 ] jira-feedback2 [ 17200 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17200 ] jira-feedback3 [ 19455 ]

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Martin Hasoň
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: