File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments