Passing tuples and 2d array parameters #5956

Open
opened 2026-01-22 15:23:07 +01:00 by admin · 0 comments
Owner

Originally created by @tszymanek on GitHub (Apr 24, 2018).

Originally assigned to: @Ocramius on GitHub.

I've got a similar issue to #6200 but regarding the DQL Parser.

I can't pass a tuple with f.i. (e.id, e.revision) in
$qb->expr()->in('(e.id, e.revision)', ':idRevision') 'cause it expects a T_CLOSE_PARENTHESIS but gets a comma.

Probably the evaluation of the parameter being an array of arrays won't work as well.
$idRevision = array([1001, 1], [1002, 1], [1003, 2])

Originally created by @tszymanek on GitHub (Apr 24, 2018). Originally assigned to: @Ocramius on GitHub. I've got a similar issue to #6200 but regarding the DQL Parser. I can't pass a tuple with f.i. `(e.id, e.revision)` in `$qb->expr()->in('(e.id, e.revision)', ':idRevision')` 'cause it expects a `T_CLOSE_PARENTHESIS` but gets a comma. Probably the evaluation of the parameter being an array of arrays won't work as well. `$idRevision = array([1001, 1], [1002, 1], [1003, 2])`
admin added the New FeatureCan't Fix labels 2026-01-22 15:23:07 +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#5956