|
@@ -9,7 +9,7 @@ use Sonata\AdminBundle\Form\FormMapper;
|
|
|
use Sonata\AdminBundle\Show\ShowMapper;
|
|
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
|
|
use \WorkflowBundle\Utils\DoctrineEvents;
|
|
|
-use \WorkflowBundle\Utils\WorkFlowEntities;
|
|
|
+use \WorkflowBundle\Utils\WorkFlowEntityClasses;
|
|
|
|
|
|
class Doctrine2WorkFlowActionAdmin extends BaseAdmin
|
|
|
{
|
|
@@ -21,8 +21,8 @@ class Doctrine2WorkFlowActionAdmin extends BaseAdmin
|
|
|
{
|
|
|
$datagridMapper
|
|
|
->add('name')
|
|
|
- ->add('event')
|
|
|
- ->add('entity')
|
|
|
+ ->add('eventName')
|
|
|
+ ->add('entityClass')
|
|
|
;
|
|
|
}
|
|
|
|
|
@@ -33,8 +33,8 @@ class Doctrine2WorkFlowActionAdmin extends BaseAdmin
|
|
|
{
|
|
|
$listMapper
|
|
|
->add('name')
|
|
|
- ->add('event')
|
|
|
- ->add('entity')
|
|
|
+ ->add('eventName')
|
|
|
+ ->add('entityClass')
|
|
|
->add('actions')
|
|
|
->add('_action', null, array(
|
|
|
'actions' => array(
|
|
@@ -53,11 +53,11 @@ class Doctrine2WorkFlowActionAdmin extends BaseAdmin
|
|
|
{
|
|
|
$formMapper
|
|
|
->add('name')
|
|
|
- ->add('event', ChoiceType::class, array(
|
|
|
+ ->add('eventName', ChoiceType::class, array(
|
|
|
'choices' => DoctrineEvents::getChoices(),
|
|
|
))
|
|
|
- ->add('entity', ChoiceType::class, array(
|
|
|
- 'choices' => WorkFlowEntities::getChoices(),
|
|
|
+ ->add('entityClass', ChoiceType::class, array(
|
|
|
+ 'choices' => WorkFlowEntityClasses::getChoices(),
|
|
|
))
|
|
|
->add('actions', null, array(
|
|
|
'multiple' => true,
|
|
@@ -74,8 +74,8 @@ class Doctrine2WorkFlowActionAdmin extends BaseAdmin
|
|
|
{
|
|
|
$showMapper
|
|
|
->add('name')
|
|
|
- ->add('event')
|
|
|
- ->add('entity')
|
|
|
+ ->add('eventName')
|
|
|
+ ->add('entityClass')
|
|
|
->add('actions')
|
|
|
;
|
|
|
}
|