mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-06 16:18:41 +02:00
951152e1c6
The previous argument to the Enum was: "Status" => "Enum('Active, Injured, Retired')" This would cause issues where the 'Injured' and 'Retired' statuses would actually be stored in the database as ' Injured' and ' Retired' respectively, at least in 3.0. Using an array() to specify the enum, and using normal array syntax (albeit within a string) is less likely to cause errors. |
||
---|---|---|
.. | ||
_images | ||
changelogs | ||
howto | ||
installation | ||
misc | ||
reference | ||
topics | ||
tutorials | ||
index.md |