So far , i have only built form which are related to entities using formbuilder
i normally do this
$builder->add("tasks")
Then i do this
$Form = $this->createForm(new TaskType(), $entity);
Now i just want a generic form where i have the select boxes in which i can load entities from database.
I am not persisting or binding that form i just want that when user select user and hit submit then i go to that user page
IN the above form i used to have tasks as property in user entity so i used add.
But i just want want to display tasks , whichis not linked to user can i do that
$form = $this->createFormBuilder($task)
->add('task', 'text')
->add('dueDate', 'date')
->getForm();
Example i above code can i do that
$form = $this->createFormBuilder()
->add('task', 'text')
->add('dueDate', 'date')
->getForm();