mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
$db->expr()->isMemberOf() make to 'value member of json_array' show a Syntax Error #7217
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 @siburuxue on GitHub (Sep 3, 2023).
the php code:
and then show me a Syntax Error:
but when run the sql in the database, it's working!
the database struct:
@derrabus commented on GitHub (Sep 4, 2023):
The DQL operator
MEMBER OFis meant to be used on to-many associations and does not translate to the SQL operatorMEMBER OFsome SQL dialects support for JSON fields.@siburuxue commented on GitHub (Sep 4, 2023):
can I define a custom function for the dql to translate the member of ?
And how can I do it?