[symfony-users] Re: FormFilter - sfWidgetFormChoice 'multiple' = true ... error

2010-01-26 Thread Tom Ptacnik
Thank you very much, that was exactly what I needed. I modified (generalized) the method a little (inspired by methods in sfFormFilterDoctrine): public function addTkstateColumnQuery($query, $field, $value) { $fieldName = $this-getFieldName($field);

[symfony-users] Re: FormFilter - sfWidgetFormChoice 'multiple' = true ... error

2010-01-19 Thread Tom Ptacnik
Thank you very much, I'll try. On 15 led, 14:47, ken marfillas...@gmail.com wrote: You need to add a custom query method in your filter class.   public function addTkskateColumnQuery($query, $field, $value)   {         if (!empty($value))     {       $query-addWhereIn('p. tkstate',

[symfony-users] Re: FormFilter - sfWidgetFormChoice 'multiple' = true ... error

2010-01-15 Thread Tom Ptacnik
Nobody filter a list by checkboxes or by a multiple selectbox? On 11 led, 20:51, Tom Ptacnik to...@tomor.cz wrote: Hello, I have classic admin generated backend (Symfony 1.4). Today I've tried to customize the filter for the list view. The problem is that I want to filter by multiple

[symfony-users] Re: FormFilter - sfWidgetFormChoice 'multiple' = true ... error

2010-01-15 Thread ken
You need to add a custom query method in your filter class. public function addTkskateColumnQuery($query, $field, $value) { if (!empty($value)) { $query-addWhereIn('p. tkstate', $value); } } On Jan 15, 5:50 pm, Tom Ptacnik to...@tomor.cz wrote: Nobody filter a list