public function setDocumentData(array $document)
    {
        $this->set('__date__', new \MongoDate);
        $this->set('__documentId__', $document['_id']);
        
        unset($document['_id']);
        
        $this->merge($document);
        
        
        return $this;
    }
public function setDocumentData(array $document)
    {
        $this->set('__date__', new \MongoDate);
        $this->set('__documentId__', $document['_id']);
        
        unset($document['_id']);
        
        $this->merge($document);
        
        
        return $this;
    }
public function setDocumentData ( array $ document ) { $ this -> set ( '__date__' , new \ MongoDate ) ; $ this -> set ( '__documentId__' , $ document [ '_id' ] ) ; unset ( $ document [ '_id' ] ) ; $ this -> merge ( $ document ) ; return $ this ; }
Set document data

@param array $document
@return \Sokil\Mongo\Revision
Set document data