public function fetchAll()
    {
        if ($this->usePaginator === true) {
            return $this->initPaginator($this->tableGateway->getSql()->select());
        }
        $this->result = $this->tableGateway->select();

        return $this->result;
    }
public function fetchAll()
    {
        if ($this->usePaginator === true) {
            return $this->initPaginator($this->tableGateway->getSql()->select());
        }
        $this->result = $this->tableGateway->select();

        return $this->result;
    }
public function fetchAll ( ) { if ( $ this -> usePaginator === true ) { return $ this -> initPaginator ( $ this -> tableGateway -> getSql ( ) -> select ( ) ) ; } $ this -> result = $ this -> tableGateway -> select ( ) ; return $ this -> result ; }
Fetch All.

@return \Zend\Db\ResultSet\ResultSet
Fetch All .