// get ids for toUpdate
$idxIdMap = $this->_filterEventsByDTStarts($_currentPersistentExceptions, $toUpdateDtSTart)->getId();
- try {
- $migration['toUpdate']->setByIndices('id', $idxIdMap);
- } catch (Tinebase_Exception_Record_NotDefined $ternd) {
- // some debugging for 0008182: event with lots of exceptions breaks calendar sync
- if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' ' . print_r($idxIdMap, TRUE));
- if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' ' . print_r($migration['toUpdate']->toArray(), TRUE));
- throw $ternd;
- }
+ $migration['toUpdate']->setByIndices('id', $idxIdMap, /* $skipMissing = */ true);
// filter exceptions marked as don't touch
foreach ($migration['toUpdate'] as $toUpdate) {