src/Sulu/Component/Rest/ListBuilder/Doctrine/DoctrineListBuilderFactory.php
public function create($entityName)
    {
        return new DoctrineListBuilder($this->em, $entityName, $this->eventDispatcher, $this->permissions);
    }
public function create($entityName)
    {
        return new DoctrineListBuilder($this->em, $entityName, $this->eventDispatcher, $this->permissions);
    }
public function create ( $ entityName ) { return new DoctrineListBuilder ( $ this -> em , $ entityName , $ this -> eventDispatcher , $ this -> permissions ) ; }
Creates a new DoctrineListBuilder for the given entity name and returns it.

@param $entityName

@return DoctrineListBuilder
Creates a new DoctrineListBuilder for the given entity name and returns it .