for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\StaticPublishQueue\Dev;
use SilverStripe\ORM\Connect\DatabaseException;
use SilverStripe\ORM\Connect\MySQLiConnector;
class TestMySqlConnector extends MySQLiConnector
{
protected function databaseError($msg, $errorLevel = E_USER_ERROR, $sql = null, $parameters = [])
try {
parent::databaseError($msg, $errorLevel, $sql, $parameters);
} catch (DatabaseException $e) {
echo $e->getTraceAsString();
}