src/CoreBundle/EventListener/DcGeneral/Breadcrumb/ConnectionTrait.php
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);
    }
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);
    }
Retrieve the row.

@param string $rowId The id.

@param string $table The table to fetch from.

@return object