src/Web2All/Table/Collection.class.php
protected function fetchData()
  {
    $this->is_assoc=(is_null($this->key) ? false : true);
    
    if (!$this->collectionobject) {
      // no collection object;
      throw new Exception('Web2All_Table_Collection::fetchData: no collection object provide for cloning');
    }
    
    if(is_null($this->result)){
      $this->result=array();
    }
    $recordSet = $this->dataprovider->getADORecordSet();
    while (!$recordSet->EOF) {
      $coll_obj=clone $this->collectionobject;
      $coll_obj->loadFromDBArray($recordSet->FetchRow());
      if ($this->is_assoc) {
        $this->result[$coll_obj->{$this->key}]=$coll_obj;
      }else{
        $this->result[]=$coll_obj;
      }
    }
    $recordSet->close();
  }
protected function fetchData()
  {
    $this->is_assoc=(is_null($this->key) ? false : true);
    
    if (!$this->collectionobject) {
      // no collection object;
      throw new Exception('Web2All_Table_Collection::fetchData: no collection object provide for cloning');
    }
    
    if(is_null($this->result)){
      $this->result=array();
    }
    $recordSet = $this->dataprovider->getADORecordSet();
    while (!$recordSet->EOF) {
      $coll_obj=clone $this->collectionobject;
      $coll_obj->loadFromDBArray($recordSet->FetchRow());
      if ($this->is_assoc) {
        $this->result[$coll_obj->{$this->key}]=$coll_obj;
      }else{
        $this->result[]=$coll_obj;
      }
    }
    $recordSet->close();
  }
fetch all data from the database and store the
result in this object.

after this method has been called, this object can be
treated as an array of objects.