Validation + Purgeable traits must now be used in the Model class definition
This commit is contained in:
parent
ebb869186d
commit
e29d88e07a
|
|
@ -1,6 +1,7 @@
|
||||||
* **Build 11x** (2014-07-xx)
|
* **Build 11x** (2014-07-xx)
|
||||||
- Added new Backend control for creating informative panels (hints).
|
- Added new Backend control for creating informative panels (hints).
|
||||||
- Added new properties to RelationController: readOnly, showSorting, defaultSort.
|
- 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)
|
* **Build 116** (2014-07-07)
|
||||||
- Added new layout and page method `onInit()` called after components are initialized and before AJAX requests are processed.
|
- Added new layout and page method `onInit()` called after components are initialized and before AJAX requests are processed.
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ use October\Rain\Auth\Models\User as UserBase;
|
||||||
class User extends UserBase
|
class User extends UserBase
|
||||||
{
|
{
|
||||||
use \October\Rain\Database\Traits\Hashable;
|
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.
|
* @var string The database table used by the model.
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ use October\Rain\Auth\Models\Group as GroupBase;
|
||||||
*/
|
*/
|
||||||
class UserGroup extends GroupBase
|
class UserGroup extends GroupBase
|
||||||
{
|
{
|
||||||
|
use \October\Rain\Database\Traits\Validation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string The database table used by the model.
|
* @var string The database table used by the model.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@ use System\Classes\ApplicationException;
|
||||||
|
|
||||||
class MailLayout extends Model
|
class MailLayout extends Model
|
||||||
{
|
{
|
||||||
|
use \October\Rain\Database\Traits\Validation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string The database table used by the model.
|
* @var string The database table used by the model.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@ use System\Classes\PluginManager;
|
||||||
|
|
||||||
class MailTemplate extends Model
|
class MailTemplate extends Model
|
||||||
{
|
{
|
||||||
|
use \October\Rain\Database\Traits\Validation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string The database table used by the model.
|
* @var string The database table used by the model.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ use System\Classes\PluginManager;
|
||||||
|
|
||||||
class PluginVersion extends Model
|
class PluginVersion extends Model
|
||||||
{
|
{
|
||||||
|
use \October\Rain\Database\Traits\Purgeable;
|
||||||
|
|
||||||
public $table = 'system_plugin_versions';
|
public $table = 'system_plugin_versions';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue