src/PHPDish/Bundle/AdminBundle/Grid/Column/Column.php
public function getFilterByOperator($operator)
    {
        //如果只有一个filter，则operator可以忽略
        if ($operator === null && count($this->filters) === 1) {
            return $this->filters[0];
        }
        foreach ($this->filters as $filter) {
            if ($filter->getOperator() === $operator) {
                return $filter;
            }
        }
        return null;
    }
public function getFilterByOperator($operator)
    {
        //如果只有一个filter，则operator可以忽略
        if ($operator === null && count($this->filters) === 1) {
            return $this->filters[0];
        }
        foreach ($this->filters as $filter) {
            if ($filter->getOperator() === $operator) {
                return $filter;
            }
        }
        return null;
    }
{@inheritdoc}