我正在使用Symfony 4.2版本 我做了一个工作流程服务,他负责三个地方的草稿,审阅和发布
我将这行代码添加到conf / products / framework.yaml中。但是我不明白代码中的currentPlace是什么。我通过此示例https://symfony.com/doc/4.2/workflow.html
工作workflows:
article_publishing:
type: 'workflow'
audit_trail:
enabled: true
marking_store:
type: 'multiple_state'
arguments:
- 'currentPlace'
supports:
- App\Entity\Article
initial_marking: draft
places:
-draft
-reviewed
-published
transitions:
to_review:
from: draft
to: reviewed
publish:
from: reviewed
to: published
但是当我刷新网站时,会出现此错误
Warning: array_map(): Argument #2 should be an array