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);
Thank you very much, I'll try.
On 15 led, 14:47, ken 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', $value);
> }
>
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 wrote:
> Nobody filter a list by checkboxes
Nobody filter a list by checkboxes or by a multiple selectbox?
On 11 led, 20:51, Tom Ptacnik 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 select. So I'v