mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
update config for tasks workflow to symfony 4.4+
This commit is contained in:
parent
2d7bc06539
commit
6a37079ee5
@ -83,7 +83,7 @@ class ChillTaskExtension extends Extension implements PrependExtensionInterface
|
||||
'type' => 'method',
|
||||
'property' => 'currentStates',
|
||||
],
|
||||
'type' => 'state_machine',
|
||||
'type' => 'workflow',
|
||||
'support_strategy' => TaskWorkflowManager::class,
|
||||
'places' => ['new', 'in_progress', 'closed', 'canceled'],
|
||||
'initial_marking' => ['new'],
|
||||
|
@ -62,12 +62,10 @@ abstract class AbstractTask implements HasCenterInterface, HasScopeInterface
|
||||
private ?\Chill\PersonBundle\Entity\AccompanyingPeriod $course = null;
|
||||
|
||||
/**
|
||||
* @var json
|
||||
*
|
||||
* @ORM\Column(name="current_states", type="json")
|
||||
* @ORM\Column(name="current_states", type="json", options={"jsonb"=true, "default"="[]"})
|
||||
* @Serializer\Groups({"read"})
|
||||
*/
|
||||
private $currentStates = [];
|
||||
private array $currentStates = [];
|
||||
|
||||
/**
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user