Skip to content

Commit 67767f3

Browse files
committed
improvement(DB storage): improvement on type stored
An improvement has been made in order to explain the usage of an int via MarkingStoreInterface
1 parent 082a4f1 commit 67767f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

workflow/usage.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ As configured, the following property is used by the marking store::
169169
If a ``multiple_state`` is used, the persisted state type should be an ``array``,
170170
using Doctrine, you can use ``json`` or ``json_array``.
171171

172-
If a ``single_state`` is used, the persisted state type could be a string
172+
If a ``single_state`` is used, the persisted state type could be a string,
173+
if you need to store an int (due to DB limitations and/or project constraints),
174+
be aware that you need to implement :class:`Symfony\\Component\\Workflow\\MarkingStore\\MarkingStoreInterface`
175+
in order to transform the int back to something understandable by Workflow.
173176

174177
If something else is used, you're in charge of choosing the best storage format.
175178

0 commit comments

Comments
 (0)