How can i add text fields in my form knowing that it does not exist in my entity!!
i have this in my twig :
<form action="{{ path('add_conge') }}" method="post">
<h1>{{ 'Envoyer une demande de congé'}}</h1>
<div>
{{ form_errors(form.email) }}
{{ form_label(form.email, 'Email Collaborateur:') }}
{{ form_widget(form.email) }}
</div>
<div>
{{ form_errors(form.dateDepart) }}
{{ form_label(form.dateDepart, 'Date depart:') }}
{{ form_widget(form.dateDepart) }}
</div>
//...
and i get this exception:
Method "email" for object "Symfony\Component\Form\FormView" does not exist in SqliGestionCongeBundle:Default:add.html.twig