THis my code
public function buildForm(FormBuilder $builder, array $options , $task )
{
$builder
->add('genTasks','text',array('label'=>$task->getName()))
;
}
Is there any way i can access the $task variable inside buildForm
One solution:
And pass your task object as option when you create your form.