src/Zicht/Bundle/AdminBundle/Service/Quicklist.php
public function getOne($repository, $id)
    {
        $repoConfig = $this->repos[$repository];
        /** @var $q \Doctrine\ORM\QueryBuilder */
        return $this->doctrine
            ->getRepository($repoConfig['repository'])
            ->find($id);
    }
public function getOne($repository, $id)
    {
        $repoConfig = $this->repos[$repository];
        /** @var $q \Doctrine\ORM\QueryBuilder */
        return $this->doctrine
            ->getRepository($repoConfig['repository'])
            ->find($id);
    }
public function getOne ( $ repository , $ id ) { $ repoConfig = $ this -> repos [ $ repository ] ; /** @var $q \Doctrine\ORM\QueryBuilder */ return $ this -> doctrine -> getRepository ( $ repoConfig [ 'repository' ] ) -> find ( $ id ) ; }
Return a single record by it's id. Used to map the front-end variable back to an object from the repository.

@param string $repository
@param mixed $id
@return object
Return a single record by it s id . Used to map the front - end variable back to an object from the repository .