protected function getConnection() { if ($this->dbHandler === null) { throw new \RuntimeException('Missing database connection.'); } return $this->dbHandler; }