I have a Task object that has nothing to do with the essence of the company (the Company has projects, and each project has Tasks) and this simple form:
class TaskType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('company','entity',array(
'class' => 'ITMore\FlowBundle\Entity\Company',
'mapped' => false
))
}
}
and what I want to do is render this field as text , so I can autocomplete it using jquery (friendly user interface). many projects, so I do not want the user to view the entire list). It is assumed that it will work as follows: the user will fill in the company field, then a list of companies that match the input value will be displayed, and after that there is a second input project - which should have prompts with these company projects.
I do not know how to do that. One way that I thought might work is to do this in the controller after checking, but this solution is not very neat