mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Passing tuples and 2d array parameters #5958
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 @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 aT_CLOSE_PARENTHESISbut 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])@Ocramius commented on GitHub (Apr 24, 2018):
Indeed,
in()works against a single field in DQL.This is a limitation of the DBAL type system: it would require a new major version to re-design the type system to not rely on type strings, but rather a type DSL.
@Ocramius commented on GitHub (Apr 24, 2018):
Closing as
can't fixhere - not something that we can work on in the near future.