Validation + Purgeable traits must now be used in the Model class definition

This commit is contained in:
Sam Georges 2014-07-11 21:15:21 +10:00
parent ebb869186d
commit e29d88e07a
6 changed files with 10 additions and 0 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -6,6 +6,7 @@ use System\Classes\PluginManager;
class PluginVersion extends Model
{
use \October\Rain\Database\Traits\Purgeable;
public $table = 'system_plugin_versions';