When I run:
$stmt->bindValue(':is_active', true, \PDO::PARAM_BOOL);
I get this kind of error:
Fatal error: Uncaught exception 'Exception' with message 'Execution statement failed. Error:
<pre>
array(3) {
[0]=>
string(5) "00000"
[1]=>
int(2)
[2]=>
string(58) "Invalid INTEGER constant (1) for is_active of type boolean"
}
If I run:
$stmt->bindValue(':is_active', "true", \PDO::PARAM_BOOL);
When I run: $stmt->bindValue(':is_active', true, \PDO::PARAM_BOOL);
I get this kind of error: Fatal error: Uncaught exception 'Exception' with message 'Execution statement failed. Error: <pre> array(3) { [0]=> string(5) "00000" [1]=> int(2) [2]=> string(58) "Invalid INTEGER constant (1) for is_active of type boolean" }
If I run: $stmt->bindValue(':is_active', "true", \PDO::PARAM_BOOL);
it works.