Bonjour,
j'ai ajouté tout un dossier exception sous app/ress/twigBundle/views/

Contenu du exception_full.html :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{#% extends 'TwigBundle::layout.html.twig' %#}
 
{% block head %}
 {% endblock %}
 
{% block title %}
 
{% endblock %}
 
{% block body %}
  {% if status_code == 500 %}
    {#% include 'TwigBundle:Exception:exception.html.twig' %#}  
    {% include 'TwigBundle:Exception:error500.html.twig' %}
{% elseif status_code == 404 %}
    {#% include 'TwigBundle:Exception:exception.html.twig' %#}
    {% include 'TwigBundle:Exception:error404.html.twig' %}
 
{% endif %}
{% endblock %}
Mon objectif est de gerer la page erreur (je connais pas de quel status_code viend)
Whoops, looks like something went wrong.

1/1ContextErrorException: Notice: Undefined index: Rubrique in C:\wamp\www\ProjetWeb\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\BasicEntityPersister.php line 1608
in C:\wamp\www\ProjetWeb\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\BasicEntityPersister.php line 1608
at ErrorHandler->handle('8', 'Undefined index: Rubrique', 'C:\wamp\www\ProjetWeb\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\BasicEntityPersister.php', '1608', array('assoc' => array('fieldName' => 'sousrubriques', 'mappedBy' => 'Rubrique', 'targetEntity' => 'MyApp\EspritBundle\Entity\SousRubrique', 'cascade' => array('remove', 'persist'), 'orphanRemoval' => false, 'fetch' => '2', 'type' => '4', 'inversedBy' => null, 'isOwningSide' => false, 'sourceEntity' => 'MyApp\EspritBundle\Entity\Rubrique', 'isCascadeRemove' => true, 'isCascadePersist' => true, 'isCascadeRefresh' => false, 'isCascadeMerge' => false, 'isCascadeDetach' => false), 'sourceEntity' => object(Rubrique), 'offset' => null, 'limit' => null, 'criteria' => array())) in C:\wamp\www\ProjetWeb\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\BasicEntityPersister.php line 1608

merci a tous