mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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.