Zmienna nie istnieje w symfony2

Mam następujący problem w moim projekcie symfony2:

To jest kod mojego kontrolera

public function showCustomerAction($id) {
    // retrieve the customer from the database
    $em = $this->getDoctrine()->getManager();
    $customer = $em->getRepository('VictorIoSiteBundle:Customer')->find($id);

    //throw new \Exception($customer);
    return $this->render('VictorIoSiteBundle:Site:viewCustomer.html.twig', array('customer' => $customer));
}

I kod mojego widoku gałązki (całkiem prosty):

{% if customer is defined %}
    <h3>Customer: {{ customer }} </h3>
{% endif %}

Wreszcie mój routing.yml

victor_io_site_show_customer:
pattern: /show-customer/{id}
defaults: { _controller: VictorIoSiteBundle:Site:showCustomer }
requirements:
    id: \d+

Teraz, kiedy idę dalej

http://localhost/Garage/web/app_dev.php/show-customer/46

Otrzymuję następujący błąd:

Variable " customer " does not exist in VictorIoSiteBundle:Site:viewCustomer.html.twig at line 2
500 Internal Server Error - Twig_Error_Runtime

questionAnswers(1)

yourAnswerToTheQuestion