Re: [symfony-users] Form choice from database based on hidden form element

2010-08-13 Thread Gustavo Adrian
Could you post the code from your form? On Fri, Aug 13, 2010 at 7:36 PM, Jonotron wrote: > I have a form that uses a sfWidgetFormDoctrineChoice widget and I pass > a query to it that selects my "category" records based on another > hidden field. My query has a ->where('a.id = ?', $this->getObjec

[symfony-users] Form choice from database based on hidden form element

2010-08-13 Thread Jonotron
I have a form that uses a sfWidgetFormDoctrineChoice widget and I pass a query to it that selects my "category" records based on another hidden field. My query has a ->where('a.id = ?', $this->getObject()- >getCategoryId()); This works great when I am looking at the new form (as I create the form