src/Component/ItemSearch.php
public function setModelCondition($m)
    {
        $q = $this->getQuery();
        if ($q && ($_GET['__atk_reload'] ? $_GET['__atk_reload'] : null) === $this->reload->name) {
            $m->addCondition('name', 'like', '%'.$q.'%');
        }

        return $m;
    }
public function setModelCondition($m)
    {
        $q = $this->getQuery();
        if ($q && ($_GET['__atk_reload'] ? $_GET['__atk_reload'] : null) === $this->reload->name) {
            $m->addCondition('name', 'like', '%'.$q.'%');
        }

        return $m;
    }
public function setModelCondition ( $ m ) { $ q = $ this -> getQuery ( ) ; if ( $ q && ( $ _GET [ '__atk_reload' ] ? $ _GET [ '__atk_reload' ] : null ) === $ this -> reload -> name ) { $ m -> addCondition ( 'name' , 'like' , '%' . $ q . '%' ) ; } return $ m ; }
Set model condition base on search request.

@param $m

@return mixed
Set model condition base on search request .