[PR #245] [DDC-1572] Allow LIKE pattern to be a function or path expression #7913

Closed
opened 2026-01-22 15:57:31 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/245

State: closed
Merged: Yes


I fix like expression parser as well as SqlWalker to allow the pattern to be a function or path expression (another column for example joined column), to allow such where conditions:

LOWER(u.field) LIKE LOWER(?1) or with joined tables - log.messages LIKE alert.pattern

I do not know if I fixed that in the correct way, because I am not familiar with Doctrine2 query parsers and lexers.
I've created also few test cases for that and it works.

**Original Pull Request:** https://github.com/doctrine/orm/pull/245 **State:** closed **Merged:** Yes --- I fix like expression parser as well as SqlWalker to allow the pattern to be a function or path expression (another column for example joined column), to allow such where conditions: LOWER(u.field) LIKE LOWER(?1) or with joined tables - log.messages LIKE alert.pattern I do not know if I fixed that in the correct way, because I am not familiar with Doctrine2 query parsers and lexers. I've created also few test cases for that and it works.
admin added the pull-request label 2026-01-22 15:57:31 +01:00
admin closed this issue 2026-01-22 15:57:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7913