diff --git a/CHANGELOG.md b/CHANGELOG.md index 52209a306..eb40d8781 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ * **Build 11x** (2014-07-xx) - Added new Backend control for creating informative panels (hints). - Added new properties to RelationController: readOnly, showSorting, defaultSort. + - Hashable, Sluggable, Purgeable and Validation traits must now be used in the Model class definition. * **Build 116** (2014-07-07) - Added new layout and page method `onInit()` called after components are initialized and before AJAX requests are processed. diff --git a/modules/backend/models/User.php b/modules/backend/models/User.php index 2dc869d67..243c9b930 100644 --- a/modules/backend/models/User.php +++ b/modules/backend/models/User.php @@ -13,6 +13,8 @@ use October\Rain\Auth\Models\User as UserBase; class User extends UserBase { use \October\Rain\Database\Traits\Hashable; + use \October\Rain\Database\Traits\Purgeable; + use \October\Rain\Database\Traits\Validation; /** * @var string The database table used by the model. diff --git a/modules/backend/models/UserGroup.php b/modules/backend/models/UserGroup.php index 7465fbf46..5ef2e9fff 100644 --- a/modules/backend/models/UserGroup.php +++ b/modules/backend/models/UserGroup.php @@ -10,6 +10,8 @@ use October\Rain\Auth\Models\Group as GroupBase; */ class UserGroup extends GroupBase { + use \October\Rain\Database\Traits\Validation; + /** * @var string The database table used by the model. */ diff --git a/modules/system/models/MailLayout.php b/modules/system/models/MailLayout.php index e671fde5f..9dfaf7b18 100644 --- a/modules/system/models/MailLayout.php +++ b/modules/system/models/MailLayout.php @@ -5,6 +5,8 @@ use System\Classes\ApplicationException; class MailLayout extends Model { + use \October\Rain\Database\Traits\Validation; + /** * @var string The database table used by the model. */ diff --git a/modules/system/models/MailTemplate.php b/modules/system/models/MailTemplate.php index 72f15a70e..064f35df5 100644 --- a/modules/system/models/MailTemplate.php +++ b/modules/system/models/MailTemplate.php @@ -9,6 +9,8 @@ use System\Classes\PluginManager; class MailTemplate extends Model { + use \October\Rain\Database\Traits\Validation; + /** * @var string The database table used by the model. */ diff --git a/modules/system/models/PluginVersion.php b/modules/system/models/PluginVersion.php index 2c44c26dc..49d80c46e 100644 --- a/modules/system/models/PluginVersion.php +++ b/modules/system/models/PluginVersion.php @@ -6,6 +6,7 @@ use System\Classes\PluginManager; class PluginVersion extends Model { + use \October\Rain\Database\Traits\Purgeable; public $table = 'system_plugin_versions';