/** * Add a deleted object to the ChangeSet. * @param OSM_Objects_Object $obj * @throws OSM_Exception */ public function deleteObject(OSM_Objects_Object $obj) { $objectId = $obj->getId(); if (empty($objectId)) { throw new OSM_Exception('Object Id must be set'); } $obj->setAttribute('changeset', $this->_id); // do not increment the version, it's need by the server to detect conflict. //$obj->setAttribute('version', $obj->getAttribute('version') + 1); $this->_deleteObjects[$objectId] = $obj; }