protected function processNotifierMapper(NotifierMapper $mapper) { $notifier = $mapper->getNotifier(); try { $mapper->delete(); $notifier->execute(); } catch (Exception $ex) { Yii::getLogger()->log('An error ocurred while processing notifier [' . get_class($notifier) . '].' . PHP_EOL . 'Exception: [' . $ex->getTraceAsString() . ']', Logger::LEVEL_ERROR, 'notification'); } }