src/Sulu/Component/Rest/Listing/ListRestHelper.php
public function getRepository($entityName)
    {
        return new ListRepository($this->em, $this->em->getClassMetadata($entityName), $this);
    }
public function getRepository($entityName)
    {
        return new ListRepository($this->em, $this->em->getClassMetadata($entityName), $this);
    }
public function getRepository ( $ entityName ) { return new ListRepository ( $ this -> em , $ this -> em -> getClassMetadata ( $ entityName ) , $ this ) ; }
Create a ListRepository for given EntityName.

@param string $entityName

@return ListRepository
Create a ListRepository for given EntityName .