public final function OneFromReader(DBInterfaces\IDatabaseReader $reader)
    {
        $object = null;
        if($reader->Read())
        {
            $object = $this->CreateInstance($reader[$this->KeyField()]);
            $object->InitFromReader($reader);
        }
        $reader->Close();
        return $object;
    }
public final function OneFromReader(DBInterfaces\IDatabaseReader $reader)
    {
        $object = null;
        if($reader->Read())
        {
            $object = $this->CreateInstance($reader[$this->KeyField()]);
            $object->InitFromReader($reader);
        }
        $reader->Close();
        return $object;
    }
public final function OneFromReader ( DBInterfaces \ IDatabaseReader $ reader ) { $ object = null ; if ( $ reader -> Read ( ) ) { $ object = $ this -> CreateInstance ( $ reader [ $ this -> KeyField ( ) ] ) ; $ object -> InitFromReader ( $ reader ) ; } $ reader -> Close ( ) ; return $ object ; }
Returns one object by reading the reader.
@param $reader
@return DBInterfaces\DatabaseObject
Returns one object by reading the reader .