public function loop($hydratorset = null, $callback = null)
    {
        try {

            // get valid result
            $this->data = $this->searcher->getFields();

            foreach ($this->data as $key => $values) {
                // start build interface
                if (empty($values) === false) {
                    $this->{'set' . ucfirst($key)}();
                }
            }

            // execute query
            return $this->setResult($hydratorset, $callback);

        } catch (ExceptionFactory $e) {
            echo $e->getMessage();
        }
    }
public function loop($hydratorset = null, $callback = null)
    {
        try {

            // get valid result
            $this->data = $this->searcher->getFields();

            foreach ($this->data as $key => $values) {
                // start build interface
                if (empty($values) === false) {
                    $this->{'set' . ucfirst($key)}();
                }
            }

            // execute query
            return $this->setResult($hydratorset, $callback);

        } catch (ExceptionFactory $e) {
            echo $e->getMessage();
        }
    }
public function loop ( $ hydratorset = null , $ callback = null ) { try { // get valid result $ this -> data = $ this -> searcher -> getFields ( ) ; foreach ( $ this -> data as $ key => $ values ) { // start build interface if ( empty ( $ values ) === false ) { $ this -> { 'set' . ucfirst ( $ key ) } ( ) ; } } // execute query return $ this -> setResult ( $ hydratorset , $ callback ) ; } catch ( ExceptionFactory $ e ) { echo $ e -> getMessage ( ) ; } }
Build query chain
@param null $hydratorset
@param null $callback
@throws ExceptionFactory {$error}
@return Builder|null
Build query chain