public function setFields(array $models)
    {

        try {

            // need to return << true
            $this->validator->verify($models, [
                'isArray', 'isNotEmpty', 'isExists'
            ], 'where');

        }
        catch(ExceptionFactory $e) {
            echo $e->getMessage();
        }

        return $this;
    }
public function setFields(array $models)
    {

        try {

            // need to return << true
            $this->validator->verify($models, [
                'isArray', 'isNotEmpty', 'isExists'
            ], 'where');

        }
        catch(ExceptionFactory $e) {
            echo $e->getMessage();
        }

        return $this;
    }
public function setFields ( array $ models ) { try { // need to return << true $ this -> validator -> verify ( $ models , [ 'isArray' , 'isNotEmpty' , 'isExists' ] , 'where' ) ; } catch ( ExceptionFactory $ e ) { echo $ e -> getMessage ( ) ; } return $ this ; }
Prepare models and fields to participate in search

@param  array            $models
@example <code>
$s->setFields([
'Model/Table1'    =>    [
'title',
'text'
],
'Model/Table2'    =>    [
'name',
'mark'
]....
])
</code>
@throws ExceptionFactory {$error}
@return Searcher
Prepare models and fields to participate in search