Lior.php
Lior.php
This is my code: ` $fluent->getPdo()->errorCode(); $fluent->getPdo()->errorInfo(); `
You can set this option for the PDO : PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION And simply catch the exception.
I know that, but it's global solution. I have difference primaryKey each table. I dont do it on new Query(), i want to do it on any query.
str_replce (? to %s Or %d) & vsprintf