@@ -60,7 +60,7 @@ follows:
6060 supports :
6161 - App\Entity\BlogPost
6262 initial_marking : draft
63- places :
63+ places : # defining places manually is optional
6464 - draft
6565 - reviewed
6666 - rejected
@@ -97,10 +97,13 @@ follows:
9797 </framework : marking-store >
9898 <framework : support >App\Entity\BlogPost</framework : support >
9999 <framework : initial-marking >draft</framework : initial-marking >
100+
101+ <!-- defining places manually is optional -->
100102 <framework : place >draft</framework : place >
101103 <framework : place >reviewed</framework : place >
102104 <framework : place >rejected</framework : place >
103105 <framework : place >published</framework : place >
106+
104107 <framework : transition name =" to_review" >
105108 <framework : from >draft</framework : from >
106109 <framework : to >reviewed</framework : to >
@@ -135,6 +138,7 @@ follows:
135138 ->type('method')
136139 ->property('currentPlace');
137140
141+ // defining places manually is optional
138142 $blogPublishing->place()->name('draft');
139143 $blogPublishing->place()->name('reviewed');
140144 $blogPublishing->place()->name('rejected');
@@ -168,6 +172,17 @@ follows:
168172 ``'draft' `` or ``!php/const App\Entity\BlogPost::TRANSITION_TO_REVIEW ``
169173 instead of ``'to_review' ``.
170174
175+ .. tip ::
176+
177+ You can omit the ``places `` option if your transitions define all the places
178+ that are used in the workflow. Symfony will automatically extract the places
179+ from the transitions.
180+
181+ .. versionadded :: 7.1
182+
183+ The support for omitting the ``places `` option was introduced in
184+ Symfony 7.1.
185+
171186The configured property will be used via its implemented getter/setter methods by the marking store::
172187
173188 // src/Entity/BlogPost.php
0 commit comments