src/Graviton/RestBundle/Model/DocumentModel.php
public function setRepository(DocumentRepository $repository)
    {
        $this->repository = $repository;
        $this->manager = $repository->getDocumentManager();
        return $this;
    }
public function setRepository(DocumentRepository $repository)
    {
        $this->repository = $repository;
        $this->manager = $repository->getDocumentManager();
        return $this;
    }
public function setRepository ( DocumentRepository $ repository ) { $ this -> repository = $ repository ; $ this -> manager = $ repository -> getDocumentManager ( ) ; return $ this ; }
create new app model

@param DocumentRepository $repository Repository of countries

@return \Graviton\RestBundle\Model\DocumentModel
create new app model