Controller/CustomerController.php
private function findCustomerById ($id) {
        $customer = $this->getDoctrine()
            ->getManager()
            ->getRepository('CanalTPNmmPortalBundle:Customer')
            ->find($id);

        return $customer;
    }
private function findCustomerById ($id) {
        $customer = $this->getDoctrine()
            ->getManager()
            ->getRepository('CanalTPNmmPortalBundle:Customer')
            ->find($id);

        return $customer;
    }
private function findCustomerById ( $ id ) { $ customer = $ this -> getDoctrine ( ) -> getManager ( ) -> getRepository ( 'CanalTPNmmPortalBundle:Customer' ) -> find ( $ id ) ; return $ customer ; }
Find a Customer by id.

@param mixed $id The customer id

@return CanalTP\NmmPortalBundle\Entity\Customer
Find a Customer by id .