Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d74d2f7

Browse files
committed
better doc about marking store
1 parent 5e87417 commit d74d2f7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

workflow.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,20 @@ As configured, the following property is used by the marking store::
158158

159159
The marking store type could be "multiple_state" or "single_state". A single
160160
state marking store does not support a model being on multiple places at the
161-
same time.
161+
same time. This means a "workflow" must use a "multiple_state" marking store
162+
and a "state_machine" must use a "single_state" marking store. Symfony
163+
configures the marking store according to the "type" by default, so it's
164+
preferable to not configure it.
165+
166+
A single state marking store use a string to store the data. A multiple
167+
state marking store use an array to store the data.
162168

163169
.. tip::
164170

165-
The ``type`` (default value ``single_state``) and ``arguments`` (default
166-
value ``marking``) attributes of the ``marking_store`` option are optional.
167-
If omitted, their default values will be used.
171+
The ``marking_store.type`` (the default value depends on the ``type`` value)
172+
and ``arguments`` (default value ``['marking']``) attributes of the
173+
``marking_store`` option are optional. If omitted, their default values will
174+
be used. It's highly recommenced to use the default value.
168175

169176
.. tip::
170177

0 commit comments

Comments
 (0)