foreach ($commands as $command) { if ($command->
getDefinition()->
getClass() !== RuleConditionDefinition::
class) { continue;
} if ($command instanceof DeleteCommand
) { continue;
} if ($command instanceof InsertCommand
) { $this->
validateCondition(null,
$command,
$writeException,
$event->
getContext());
continue;
} if ($command instanceof UpdateCommand
) { $updateQueue[] =
$command;
continue;
} throw new UnsupportedCommandTypeException($command);
}