private function getRecords($contentTypeKey, $limit)
    {
        $repo = $this->em->getRepository($contentTypeKey);
        $qb = $repo
            ->createQueryBuilder()
            ->setMaxResults($limit)
            ->orderBy('datechanged', 'DESC')
        ;

        return $repo->findWith($qb);
    }
private function getRecords($contentTypeKey, $limit)
    {
        $repo = $this->em->getRepository($contentTypeKey);
        $qb = $repo
            ->createQueryBuilder()
            ->setMaxResults($limit)
            ->orderBy('datechanged', 'DESC')
        ;

        return $repo->findWith($qb);
    }
private function getRecords ( $ contentTypeKey , $ limit ) { $ repo = $ this -> em -> getRepository ( $ contentTypeKey ) ; $ qb = $ repo -> createQueryBuilder ( ) -> setMaxResults ( $ limit ) -> orderBy ( 'datechanged' , 'DESC' ) ; return $ repo -> findWith ( $ qb ) ; }
Fetch recently changed records for a given ContentType.

@param string $contentTypeKey
@param int    $limit

@return Entity\Content[]
Fetch recently changed records for a given ContentType .