code: 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);
      }
docs: Retrieve the row.
  
  @param string $rowId The id.
  
  @param string $table The table to fetch from.
  
  @return object