Can i use query in form builder to get filtered collection in symfony form

前端 未结 5 766
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 16:42

IN the AcmePizza BUndle this is working fine

->add(\'pizza\', \'entity\', array(
                \'class\'         => \'Acme\\PizzaBundle\\Entity\\Pizza\',         


        
5条回答
  •  抹茶落季
    2021-02-05 17:20

    I point you to right direction (I hope) :

    http://www.craftitonline.com/2011/08/symfony2-ajax-form-republish/

    This article deals with field dependencies. for example, when you select a country, you have the towns that belongs to the country that appears in the list.

提交回复
热议问题