SQL - PHP SYMFONY 4 - QUOTE
You are viewing an old version of this question. View
the current version here
I want to interrogate my BD which includes a Json field.
When I test my request in phpmyadmin (sql) everything works but in php (symfony 4) I have a quote problem I think.
Here is my request
$sql = " SELECT * FROM myTable WHERE user_id = :userId AND JSON_CONTAINS(roles, '["ROLE_FOO"]') ";
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.