Symfony - Form - preferred choice for radio button -
How to set the preferred option in a form for the radio button?
What do I want when I load a web page, then check for a specific radio (the last of my 4 radio buttons) ...
But I've read that "favorites Choice "is not used for just one option list, not for radio or checkbox
I tried:
- & gt; Use the (EntityRepository $ repository) function ($ $ parametre_langue) {Return $ repository- Return to the 'Return' form ('$', 'unit', array ('class' = & gt; 'AVCMediasBundle: Offre', 'Query_builder' = & gt; & Gt; createQueryBuilder ('q') -> where ('q.id = 4') - & gt; order by ('q' par ',' dess');}, 'property' = & gt; = 'Gtc: mediawiki =' gtc: Etter = '> array (' class' = & gt; 'langue_selector'))); thanks
My solution passed my choice straight Was the unit when I load my form
$ preferedOffer = $ em- & gt; GetRepository ('AVCMediasbundle: offre') - & gt; PalanoxiID ('4'); $ DetailTransaction- & gt; SetOffre ($ preferedOffer);
Comments
Post a Comment