File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,22 @@ Whoa! You now have a new ``src/Entity/Product.php`` file::
174
174
Confused why the price is an integer? Don't worry: this is just an example.
175
175
But, storing prices as integers (e.g. 100 = $1 USD) can avoid rounding issues.
176
176
177
+ .. note ::
178
+
179
+ For a property name `Enum ` get the path (e.g. App\E ntity\E nums\e tat)
180
+ A State.php example ``src/Entity/Enums/State.php `` file::
181
+
182
+ // src/Entity/Enums/State.php
183
+ namespace App\Entity\Enums;
184
+
185
+ enum Etat: string
186
+ {
187
+ case IN_PROGRESS = 'In progress';
188
+ case COMPLETED = 'Completed';
189
+ case PENDING = 'Pending';
190
+ }
191
+
192
+
177
193
.. warning ::
178
194
179
195
There is a `limit of 767 bytes for the index key prefix `_ when using
You can’t perform that action at this time.
0 commit comments