lib/CosmoW/Riak/GridFS.php
protected function doSave(array &$a, array $options = array())
    {
        if (isset($a['_id'])) {
            return $this->doUpdate(array('_id' => $a['_id']), $a, $options);
        } else {
            return $this->doInsert($a, $options);
        }
    }
protected function doSave(array &$a, array $options = array())
    {
        if (isset($a['_id'])) {
            return $this->doUpdate(array('_id' => $a['_id']), $a, $options);
        } else {
            return $this->doInsert($a, $options);
        }
    }
protected function doSave ( array & $ a , array $ options = array ( ) ) { if ( isset ( $ a [ '_id' ] ) ) { return $ this -> doUpdate ( array ( '_id' => $ a [ '_id' ] ) , $ a , $ options ) ; } else { return $ this -> doInsert ( $ a , $ options ) ; } }
Execute the save query and persist the GridFSFile if necessary.

@see Collection::doSave()
@param array $a
@param array $options
@return mixed
Execute the save query and persist the GridFSFile if necessary .