public function filerBySearch($data) {
        $filter = $data['search'];
        $condition = array(
            'OR' => array(
                $this->alias . '.nombre LIKE' => '%' . $filter . '%',
                $this->alias . '.nrodocumento LIKE' => '%' . $filter . '%',
                $this->alias . '.telefono LIKE' => '%' . $filter . '%',
                $this->alias . '.domicilio LIKE' => '%' . $filter . '%',
                $this->alias . '.codigo' => $filter,
            )
        );
        return $condition;
    }
public function filerBySearch($data) {
        $filter = $data['search'];
        $condition = array(
            'OR' => array(
                $this->alias . '.nombre LIKE' => '%' . $filter . '%',
                $this->alias . '.nrodocumento LIKE' => '%' . $filter . '%',
                $this->alias . '.telefono LIKE' => '%' . $filter . '%',
                $this->alias . '.domicilio LIKE' => '%' . $filter . '%',
                $this->alias . '.codigo' => $filter,
            )
        );
        return $condition;
    }
public function filerBySearch ( $ data ) { $ filter = $ data [ 'search' ] ; $ condition = array ( 'OR' => array ( $ this -> alias . '.nombre LIKE' => '%' . $ filter . '%' , $ this -> alias . '.nrodocumento LIKE' => '%' . $ filter . '%' , $ this -> alias . '.telefono LIKE' => '%' . $ filter . '%' , $ this -> alias . '.domicilio LIKE' => '%' . $ filter . '%' , $ this -> alias . '.codigo' => $ filter , ) ) ; return $ condition ; }
Or conditions with like
Or conditions with like