genemu / GenemuFormBundle

Extra Form : Captcha GD, Tinymce, Recaptcha, JQueryDate, JQueryAutocomplete, JQuerySlider, JQueryFile, JQueryImage
587 stars 265 forks source link

genemu_jqueryautocomplete_entity returns string #377

Open aschmois opened 9 years ago

aschmois commented 9 years ago
->add('menuItem', 'genemu_jqueryautocomplete_entity', array(
            'class' => 'Project\Bundle\Entity\MenuItem',
            'property' => 'itemDesc',
        ))

Everything works fine and I get the list populated but on data I just get the property (itemDesc) sent back to me, is there any way to send the entire object or at least just the id? I don't necessarily want to do another sql query just because there isn't a property id set to value.