update config for tasks workflow to symfony 4.4+

This commit is contained in:
Julien Fastré 2023-10-02 15:02:52 +02:00
parent 2d7bc06539
commit 6a37079ee5
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 3 additions and 5 deletions

View File

@ -83,7 +83,7 @@ class ChillTaskExtension extends Extension implements PrependExtensionInterface
'type' => 'method', 'type' => 'method',
'property' => 'currentStates', 'property' => 'currentStates',
], ],
'type' => 'state_machine', 'type' => 'workflow',
'support_strategy' => TaskWorkflowManager::class, 'support_strategy' => TaskWorkflowManager::class,
'places' => ['new', 'in_progress', 'closed', 'canceled'], 'places' => ['new', 'in_progress', 'closed', 'canceled'],
'initial_marking' => ['new'], 'initial_marking' => ['new'],

View File

@ -62,12 +62,10 @@ abstract class AbstractTask implements HasCenterInterface, HasScopeInterface
private ?\Chill\PersonBundle\Entity\AccompanyingPeriod $course = null; private ?\Chill\PersonBundle\Entity\AccompanyingPeriod $course = null;
/** /**
* @var json * @ORM\Column(name="current_states", type="json", options={"jsonb"=true, "default"="[]"})
*
* @ORM\Column(name="current_states", type="json")
* @Serializer\Groups({"read"}) * @Serializer\Groups({"read"})
*/ */
private $currentStates = []; private array $currentStates = [];
/** /**
* *