[DDC-1802] DQL parser issue when using FunctionsReturningStrings(...) NOT LIKE Created: 30/Apr/12  Updated: 04/May/12  Resolved: 04/May/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: DQL
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
Security Level: All

Type: Bug Priority: Critical
Reporter: Martin HasoĊˆ Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


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

Comment by Alexander [ 04/May/12 ]

https://github.com/doctrine/doctrine2/pull/345 got merged

Generated at Tue Dec 01 22:26:12 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.