src/DocumentManager.php
public function getRepository($modelName, $collection = null)
    {
        return $this->repositoryFactory->getRepository($this, $modelName, $collection);
    }
public function getRepository($modelName, $collection = null)
    {
        return $this->repositoryFactory->getRepository($this, $modelName, $collection);
    }
public function getRepository ( $ modelName , $ collection = null ) { return $ this -> repositoryFactory -> getRepository ( $ this , $ modelName , $ collection ) ; }
Allow to get repository for specified model

@param   string      $modelName  Name of the model
@param   string      $collection Name of the collection (null for get collection from document annotation)

@return  Repository  Repository for model
Allow to get repository for specified model