src/GridFS/Repository.php
public function getUpdateQuery($document)
    {
        $updateQuery = [];
        $old = $this->uncacheObject($document);
        $new = $this->hydrator->unhydrate($document);
        unset($new["stream"]);

        return $this->updateQueryCreator->createUpdateQuery($old, $new);
    }
public function getUpdateQuery($document)
    {
        $updateQuery = [];
        $old = $this->uncacheObject($document);
        $new = $this->hydrator->unhydrate($document);
        unset($new["stream"]);

        return $this->updateQueryCreator->createUpdateQuery($old, $new);
    }
public function getUpdateQuery ( $ document ) { $ updateQuery = [ ] ; $ old = $ this -> uncacheObject ( $ document ) ; $ new = $ this -> hydrator -> unhydrate ( $ document ) ; unset ( $ new [ "stream" ] ) ; return $ this -> updateQueryCreator -> createUpdateQuery ( $ old , $ new ) ; }
Create the update query from object diff

@param   object  $document   The document that the update query will match
@return  array
Create the update query from object diff