HOw can i use doctrine find method in repository
===

This code is working fine in controller

    $em = $this->getDoctrine()->getEntityManager();
    $entity = $em->getRepository('AcmeUserBundle:Child')->find($id);

Now i have custom, Repository class

I want to know that how can use that in there

    function getUser {
    
    $em = $this->getEntityManager();
    $entity = $em->getRepository('AcmeUserBundle:Child')->find($id);
    
    }

DO i still need to use getRepository in repository as well or not

I am confused which repository it is getting by calling getRepository 