Skip to content

Commit a71406d

Browse files
[Workflow] Allow using public properties for the marking store
1 parent 8e87d62 commit a71406d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

workflow.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,27 @@ The configured property will be used via its implemented getter/setter methods b
196196
}
197197
}
198198

199+
.. tip::
200+
201+
It is also possible to use public properties to be used by the marking
202+
store. The above class would become the following::
203+
204+
// src/Entity/BlogPost.php
205+
namespace App\Entity;
206+
207+
class BlogPost
208+
{
209+
// the configured marking store property must be declared
210+
public string $currentPlace;
211+
public string $title;
212+
public string $content;
213+
}
214+
215+
.. versionadded:: 6.4
216+
217+
The support of using public properties instead of getter/setter methods
218+
and private properties was introduced in Symfony 6.4.
219+
199220
.. note::
200221

201222
The marking store type could be "multiple_state" or "single_state". A single

0 commit comments

Comments
 (0)