public function get()
    {
        $stmt = $this->execute();

        if ($stmt instanceof \Generator) {
            return iterator_to_array($stmt);
        }

        return $stmt->fetchAll();
    }
public function get()
    {
        $stmt = $this->execute();

        if ($stmt instanceof \Generator) {
            return iterator_to_array($stmt);
        }

        return $stmt->fetchAll();
    }
public function get ( ) { $ stmt = $ this -> execute ( ) ; if ( $ stmt instanceof \ Generator ) { return iterator_to_array ( $ stmt ) ; } return $ stmt -> fetchAll ( ) ; }
Executes expression and return whole result-set in form of array of hashes.

@return array
Executes expression and return whole result - set in form of array of hashes .