Skip to content

Commit 35d531a

Browse files
authored
fix(Attribute): fix on attribute type if persisted
1 parent 2fae4b4 commit 35d531a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

workflow/usage.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ like this:
138138
139139
class BlogPost
140140
{
141-
// This property is used by the marking store
141+
// This property is used by the marking store, by default, Symfony "mark" this attribute as an array.
142142
public $currentPlace;
143143
public $title;
144144
public $content;
@@ -155,7 +155,12 @@ like this:
155155
The ``type`` (default value ``single_state``) and ``arguments`` (default value ``marking``)
156156
attributes of the ``marking_store`` option are optional. If omitted, their default values
157157
will be used.
158+
159+
.. note::
158160

161+
Please note that if you decide to store $currentPlace using Doctrine,
162+
the attribute must be mapped to an array.
163+
159164
With this workflow named ``blog_publishing``, you can get help to decide
160165
what actions are allowed on a blog post::
161166

0 commit comments

Comments
 (0)