If a base classes uses a trait, no need to reuse that trait because Model boots all traits now

This commit is contained in:
Sam Georges 2014-08-03 11:57:51 +10:00
parent 3f31eed160
commit bfc3804a1a
5 changed files with 5 additions and 7 deletions

View File

@ -10,8 +10,6 @@ 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

@ -24,12 +24,12 @@ trait ViewMaker
/**
* @var string Specifies a path to the views directory.
*/
private $viewPath;
protected $viewPath;
/**
* @var string Specifies a path to the layout directory.
*/
private $layoutPath;
protected $layoutPath;
/**
* @var string Layout to use for the view.

View File

@ -21,7 +21,7 @@ trait AssetMaker
/**
* @var array Collection of assets to display in the layout.
*/
private $assets = ['js'=>[], 'css'=>[], 'rss'=>[]];
protected $assets = ['js'=>[], 'css'=>[], 'rss'=>[]];
/**
* @var string Specifies a path to the asset directory.

View File

@ -22,7 +22,7 @@ trait ConfigMaker
/**
* @var string Specifies a path to the config directory.
*/
private $configPath;
protected $configPath;
/**
* Reads the contents of the supplied file and applies it to this object.

View File

@ -15,7 +15,7 @@ trait PropertyContainer
/**
* @var array Contains the object property values.
*/
private $properties = [];
protected $properties = [];
/**
* Validates the properties against the defined properties of the class.