mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3903: Possibility to add like clause after arithmetic expression #4775
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Sep 15, 2015).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user raziel057:
I would like to be able to add a clause like this:
$queryBuilder
->orWhere($queryBuilder->expr()->quot('op.foo', 100).' LIKE :number')
->setParameter('number', $number.'%');
But I got this error: [Syntax Error] line 0, col 227: Error: Expected =, <, <=, <>, >, >=, !=, got 'LIKE'
However the generated SQL is perfectly valid:
SELECT ...
FROM order_payment o0_
WHERE o0_.foo / 100 LIKE '1.2%';
Is it possible to add LIKE as supported operator?