OrientDB/Commands/OrientDBCommandRecordLoad.php
protected function parseResponse()
    {
        $this->debugCommand('record_status_first');
        $status = $this->readByte();
        if ($status != chr(0)) {
            $this->debugCommand('record_content');
            $record_content = $this->readBytes();
            $this->debugCommand('record_version');
            $record_version = $this->readInt();
            $this->debugCommand('record_type');
            $record_type = $this->readByte();
            $this->debugCommand('record_status_cache');
            $status = $this->readByte();

            $cachedRecords = array();
            while ($status != chr(0)) {
                $this->debugCommand('record_content');
                $record = $this->readRecord();
                $cachedRecords[$record->recordID] = $record;
                $this->debugCommand('record_status_next');
                $status = $this->readByte();
            }
            // Invalidate cache
            $this->parent->cachedRecords = $cachedRecords;
            // Form a record
            $record = new OrientDBRecord();
            $record->type = $record_type;
            $record->clusterID = $this->clusterID;
            $record->recordPos = $this->recordPos;
            $record->version = $record_version;
            $record->content = $record_content;

            return $record;
        }
        return false;
    }
protected function parseResponse()
    {
        $this->debugCommand('record_status_first');
        $status = $this->readByte();
        if ($status != chr(0)) {
            $this->debugCommand('record_content');
            $record_content = $this->readBytes();
            $this->debugCommand('record_version');
            $record_version = $this->readInt();
            $this->debugCommand('record_type');
            $record_type = $this->readByte();
            $this->debugCommand('record_status_cache');
            $status = $this->readByte();

            $cachedRecords = array();
            while ($status != chr(0)) {
                $this->debugCommand('record_content');
                $record = $this->readRecord();
                $cachedRecords[$record->recordID] = $record;
                $this->debugCommand('record_status_next');
                $status = $this->readByte();
            }
            // Invalidate cache
            $this->parent->cachedRecords = $cachedRecords;
            // Form a record
            $record = new OrientDBRecord();
            $record->type = $record_type;
            $record->clusterID = $this->clusterID;
            $record->recordPos = $this->recordPos;
            $record->version = $record_version;
            $record->content = $record_content;

            return $record;
        }
        return false;
    }
(non-PHPdoc)
@see OrientDBCommandAbstract::parseResponse()
@return bool|OrientDBTypeLink|OrientDBRecord