private function getRow($rowId, $table)
    {
        return (object) $this->connection
            ->createQueryBuilder()
            ->select('*')
            ->from($table)
            ->where('id=:id')
            ->setParameter('id', $rowId)
            ->setMaxResults(1)
            ->execute()
            ->fetch(\PDO::FETCH_ASSOC);
    }