|
@@ -40,6 +40,13 @@ class WorkflowApplyCommand extends ContainerAwareCommand
|
|
|
InputOption::VALUE_REQUIRED,
|
|
|
'Entity id'
|
|
|
)
|
|
|
+ ->addOption(
|
|
|
+ 'no-filters',
|
|
|
+ null,
|
|
|
+ InputOption::VALUE_NONE,
|
|
|
+ 'disable doctrine orm filters'
|
|
|
+ )
|
|
|
+
|
|
|
;
|
|
|
}
|
|
|
|
|
@@ -54,6 +61,15 @@ class WorkflowApplyCommand extends ContainerAwareCommand
|
|
|
$transition = $input->getOption('transition');
|
|
|
$workflow = $input->getOption('workflow');
|
|
|
$entityClass = $input->getOption('entity');
|
|
|
+
|
|
|
+ $no_filters = $input->getOption('no-filters');
|
|
|
+
|
|
|
+ if($no_filters){
|
|
|
+ foreach($entity_manager->getFilters()->getEnabledFilters() as $filter_name => $filter){
|
|
|
+ $entity_manager->getFilters()->disable($filter_name);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$entityId = $input->getOption('id');
|
|
|
|
|
|
if(!class_exists($entityClass)){
|