public function getConnection()
{
$params = $this->connection->getParams();
if ($params['driver'] == 'pdo_sqlite') {
if (isset($params['path']) && !file_exists($params['path'])) {
$this->initializeSchema();
}
$this->initSqlite();
}
return $this->connection;
}