Fire/Sql/Collection.php
private function _upsert($object, $id = null)
    {
        $object = $this->_writeObjectToDb($object, $id);
        $this->_updateObjectIndexes($object);
        $this->_commitObject($object->__id, $object->__revision);
        return $object;
    }
private function _upsert($object, $id = null)
    {
        $object = $this->_writeObjectToDb($object, $id);
        $this->_updateObjectIndexes($object);
        $this->_commitObject($object->__id, $object->__revision);
        return $object;
    }
private function _upsert ( $ object , $ id = null ) { $ object = $ this -> _writeObjectToDb ( $ object , $ id ) ; $ this -> _updateObjectIndexes ( $ object ) ; $ this -> _commitObject ( $ object -> __id , $ object -> __revision ) ; return $ object ; }
Upserts an object into the collection. Since update and inserts are the same logic,
this method handles both.
@param object $object
@param string $id
@return void
Upserts an object into the collection . Since update and inserts are the same logic this method handles both .