I have to add the option ‘with_empty’ like sfWidgetFormFilterInput in a sfWidgetFormDoctrineChoice. I know this option is not available with this widget but i have to add it, but i don’t know how do to do it.
class TrainingFormFilter extends BaseTrainingFormFilter
{
public function configure()
{
$this->widgetSchema['tracks_list']
->setOption('order_by', array('name', 'ASC'))
->setOption('multiple', false)
->setOption('add_empty', true);
}
}
Thanks.
What is it you are trying to achieve?
add_emptyis available in theDoctrineChoiceandwith_emptyis available in theFilter