Fixing undefined variable $repository in Controller

Hi ,
When I call function findOr404:

    $this->findOr404($this->get('app.entity.cheese_repository'), array('id' => 1));

I get this error:

 Fatal error: Call to a member function findOneBy() on a non-object in /src/Knp/RadBundle/Controller/Controller.php on line 80