You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I'm working with my own DQL, the best solution for that would be to change the name of the called function.
Doctrine only expect sub select as parameters, so it will trigger your error.
Renaming ANY() to CUSTOM_ANY() as an example would allow you in your request to have something like this SELECT * FROM end_users WHERE 'something' = CUSTOM_ANY(feature_flags);
This will bypass the doctrine verification of ANY parameters and work
EDIT: looking at the docs, you should use ANY_OF() here, and it will do what I said above. @allan-simon
As I'm working with my own DQL, the best solution for that would be to change the name of the called function. Doctrine only expect sub select as parameters, so it will trigger your error. Renaming ANY() to CUSTOM_ANY() as an example would allow you in your request to have something like this SELECT * FROM end_users WHERE 'something' = CUSTOM_ANY(feature_flags);
This will bypass the doctrine verification of ANY parameters and work
EDIT: looking at the docs, you should use ANY_OF() here, and it will do what I said above. @allan-simon
Oh thank you, you saved my day !
Works with ANY_OF(STRING_TO_ARRAY(...
i.e if I have a field
featureFlags
which is declared astext[]
and I try to do
I got
Expected Doctrine\ORM\Query\Lexer::T_SELECT, got 'u'
whereas if i type directly in postgresql
it works
The text was updated successfully, but these errors were encountered: