final function FetchFromReader(DBInterfaces\IDatabaseReader $reader)
    {
        $objects = array();
        while($reader->Read())
        {
            $object = $this->CreateInstance($reader->ByName($this->KeyField()));
            $object->InitFromReader($reader);
            $objects[] = $object;
        }
        $reader->Close();
        return $objects;
    }
final function FetchFromReader(DBInterfaces\IDatabaseReader $reader)
    {
        $objects = array();
        while($reader->Read())
        {
            $object = $this->CreateInstance($reader->ByName($this->KeyField()));
            $object->InitFromReader($reader);
            $objects[] = $object;
        }
        $reader->Close();
        return $objects;
    }
final function FetchFromReader ( DBInterfaces \ IDatabaseReader $ reader ) { $ objects = array ( ) ; while ( $ reader -> Read ( ) ) { $ object = $ this -> CreateInstance ( $ reader -> ByName ( $ this -> KeyField ( ) ) ) ; $ object -> InitFromReader ( $ reader ) ; $ objects [ ] = $ object ; } $ reader -> Close ( ) ; return $ objects ; }
Returns all object by reading the reader to its end.
@param DBInterfaces\IDatabaseReader $reader
@return array DatabaseObject
Returns all object by reading the reader to its end .