So, i have a field in my database is_good, type boolean. So if i check in my database, i can see TRUE or FALSE in my datas.
I have a simple query with Doctrine and i simply check if my_table.is_good = $isgood.
I have var_dump($isgood) and i have a boolean in this variable.
When i execute my query, i have this error (in french) :
SQLSTATE[42883]: Undefined function: 7 ERREUR: l'opérateur n'existe pas : boolean = integer
And the query in the error message show me that : my_table.is_good = 1
I don't undestand why i can't compare field = boolean ?
Edit :
This is my first var_dump($isgood) :
<pre class='xdebug-var-dump' dir='ltr'><small>boolean</small> <font color='#75507b'>true</font></pre>
I have try to put 'true' and 'false' in my variable, so var_dump($isgood) show me a string, and it's ok for the query.. I don't understand !
var_dump($isgood)results....->createNativeQuery("SELECT ... WHERE my_table.is_good = $isgood")?