protected function processMapper(CommandMapper $mapper) {
        $command = $mapper->getCommand();
        try {
            $mapper->delete();
            $command->execute();
        } catch (Exception $ex) {
            $this->erroneousMappers->push($mapper);
            Yii::getLogger()->log(
                    'An error ocurred while processing command [' . get_class($command) . '].'
                    . PHP_EOL
                    . 'Exception: [' . $ex->getTraceAsString() . ']', Logger::LEVEL_ERROR, 'command'
            );
        }
    }
protected function processMapper(CommandMapper $mapper) {
        $command = $mapper->getCommand();
        try {
            $mapper->delete();
            $command->execute();
        } catch (Exception $ex) {
            $this->erroneousMappers->push($mapper);
            Yii::getLogger()->log(
                    'An error ocurred while processing command [' . get_class($command) . '].'
                    . PHP_EOL
                    . 'Exception: [' . $ex->getTraceAsString() . ']', Logger::LEVEL_ERROR, 'command'
            );
        }
    }
protected function processMapper ( CommandMapper $ mapper ) { $ command = $ mapper -> getCommand ( ) ; try { $ mapper -> delete ( ) ; $ command -> execute ( ) ; } catch ( Exception $ ex ) { $ this -> erroneousMappers -> push ( $ mapper ) ; Yii :: getLogger ( ) -> log ( 'An error ocurred while processing command [' . get_class ( $ command ) . '].' . PHP_EOL . 'Exception: [' . $ ex -> getTraceAsString ( ) . ']' , Logger :: LEVEL_ERROR , 'command' ) ; } }
Processes a mapper deleting it from the list and executing the command
stored in it.

@param CommandMapper $mapper
Processes a mapper deleting it from the list and executing the command stored in it .