src/Service/Search.php
public function execute() : Query
    {
        $this->applyFilters();
        $this->applySelect();
        $this->applyJoins();

        $clause = $this->query->clause('where');
        // adjust where clause conjunction
        if (null !== $clause) {
            $this->query->where($clause->setConjunction($this->conjunction), [], true);
        }

        return $this->query;
    }
public function execute() : Query
    {
        $this->applyFilters();
        $this->applySelect();
        $this->applyJoins();

        $clause = $this->query->clause('where');
        // adjust where clause conjunction
        if (null !== $clause) {
            $this->query->where($clause->setConjunction($this->conjunction), [], true);
        }

        return $this->query;
    }
public function execute ( ) : Query { $ this -> applyFilters ( ) ; $ this -> applySelect ( ) ; $ this -> applyJoins ( ) ; $ clause = $ this -> query -> clause ( 'where' ) ; // adjust where clause conjunction if ( null !== $ clause ) { $ this -> query -> where ( $ clause -> setConjunction ( $ this -> conjunction ) , [ ] , true ) ; } return $ this -> query ; }
Executes search logic.

@return \Cake\ORM\Query
Executes search logic .