How to use

Using the autocomplete is very simple. There are three required options to
configure the Form type, and one recommended:

$form=$this->createForm('autocomplete', null, array('class'=>'SomeEntityClass','template'=>'Template to use to display the entity.html.twig','search_fields'=>array('list of fields to search in'),'query_builder'=>function(EntityRepository$er) {return$er->createQueryBuilder('s'); });