Kdyby\Doctrine\Connection::resolveExceptionTable PHP Метод

resolveExceptionTable() приватный статический Метод

private static resolveExceptionTable ( Exception | Throwable $e ) : string | null
$e Exception | Throwable
Результат string | null
    private static function resolveExceptionTable($e)
    {
        if (!$e instanceof Doctrine\DBAL\DBALException) {
            return NULL;
        }
        if ($caused = Tracy\Helpers::findTrace($e->getTrace(), 'Doctrine\\DBAL\\DBALException::driverExceptionDuringQuery')) {
            if (preg_match('~(?:INSERT|UPDATE|REPLACE)(?:[A-Z_\\s]*)`?([^\\s`]+)`?\\s*~', is_string($caused['args'][1]) ? $caused['args'][1] : $caused['args'][2], $m)) {
                return $m[1];
            }
        }
        return NULL;
    }