Feature request DQL IN/NOT IT (entity.x, entity.y, entity.z) #5587

Closed
opened 2026-01-22 15:12:00 +01:00 by admin · 4 comments
Owner

Originally created by @agirot on GitHub (Jun 23, 2017).

Originally assigned to: @Ocramius on GitHub.

Hi,
What do you think to add IN/NOT IN with field entity (like native mysql/pg) ?

SELECT a FROM AppBundle:A a INNER JOIN a.fk_b b WHERE a.c NOT IN (b.x, b.y)

Currently the result is a Doctrine\ORM\Query\QueryException :-)

Originally created by @agirot on GitHub (Jun 23, 2017). Originally assigned to: @Ocramius on GitHub. Hi, What do you think to add IN/NOT IN with field entity (like native mysql/pg) ? ` SELECT a FROM AppBundle:A a INNER JOIN a.fk_b b WHERE a.c NOT IN (b.x, b.y) ` Currently the result is a Doctrine\ORM\Query\QueryException :-)
admin added the ImprovementDuplicateQuestion labels 2026-01-22 15:12:00 +01:00
admin closed this issue 2026-01-22 15:12:02 +01:00
Author
Owner

@Ocramius commented on GitHub (Jun 23, 2017):

@agirot you could modify InParameter parsing (http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/dql-doctrine-query-language.html#literal-values) to support ArithmeticExpression

@Ocramius commented on GitHub (Jun 23, 2017): @agirot you could modify `InParameter` parsing (http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/dql-doctrine-query-language.html#literal-values) to support `ArithmeticExpression`
Author
Owner

@lcobucci commented on GitHub (Jun 23, 2017):

@Ocramius Isn't that being handled by #6476?

@lcobucci commented on GitHub (Jun 23, 2017): @Ocramius Isn't that being handled by #6476?
Author
Owner

@Ocramius commented on GitHub (Jun 23, 2017):

@lcobucci ah yes, indeed. Still, that PR requires checking, as I have no idea if/how the query parsing would react to that change :-\

@Ocramius commented on GitHub (Jun 23, 2017): @lcobucci ah yes, indeed. Still, that PR requires checking, as I have no idea if/how the query parsing would react to that change :-\
Author
Owner

@lcobucci commented on GitHub (Jun 23, 2017):

@Ocramius sure thing, I was just referencing 😄

@lcobucci commented on GitHub (Jun 23, 2017): @Ocramius sure thing, I was just referencing 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5587