Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (26 sloc) 724 Bytes

Use JQueryAutocomplete to Propel values

If not use doctrine:

# app/config/config.yml
genemu_form:
    autocompleter:
        doctrine: false

Usage:

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

Extra

Ajax Propel