Permalink
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 611 Bytes

Use JQueryAutocomplete to Entity values

Usage:

<?php
// ...
public function buildForm(FormBuilder $builder, array $options)
{
    $builder
        ->add('member', 'genemu_jqueryautocompleter_entity', array(
            'class' => 'Genemu\Bundle\EntityBundle\Entity\Member',
        )
        ->add('cities', 'genemu_jqueryautocompleter_entity', array(
            'class' => 'Genemu\Bundle\EntityBundle\Entity\City',
            'multiple' => true
        ));
}

Extra

Ajax Entity