database->fetch($sql, $id); } /** * Základní informace o obvodech. * @return Nette\Database\Table\ActiveRow|null */ public function getObvody(): array { $sql = "SELECT * FROM OBVOD"; return $this->database->fetchAll($sql ); } }