Skip to content

Commit 93f11e1

Browse files
committed
fix(Attribute): fix on attribute type if persisted
1 parent 7ca5b75 commit 93f11e1

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
@@ -146,7 +146,7 @@ As configured, the following property is used by the marking store::
146146

147147
class BlogPost
148148
{
149-
// This property is used by the marking store
149+
// This property is used by the marking store, by default, Symfony "mark" this attribute as an array.
150150
public $currentPlace;
151151
public $title;
152152
public $content;
@@ -164,6 +164,11 @@ As configured, the following property is used by the marking store::
164164
attributes of the ``marking_store`` option are optional. If omitted, their default values
165165
will be used.
166166

167+
.. note::
168+
169+
Please note that if you decide to store $currentPlace using Doctrine,
170+
the attribute must be mapped to an array.
171+
167172
.. tip::
168173

169174
Setting the ``audit_trail.enabled`` option to ``true`` makes the application

0 commit comments

Comments
 (0)