08-15-2017, 10:57 AM
I think this is your answer, just need to work out how to work it into the existing database structure.
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
Something like:
$this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
Something like:
$this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);