修正traits

This commit is contained in:
thinkphp
2016-01-30 23:20:30 +08:00
parent 601a6dc945
commit 5fda023980
3 changed files with 13 additions and 21 deletions

View File

@@ -14,9 +14,6 @@ namespace traits\model;
trait Adv trait Adv
{ {
protected $optimLock = 'lock_version'; protected $optimLock = 'lock_version';
//protected $serializeField = [];
//protected $readonlyField = [];
//protected $partition = [];
/** /**
* 利用__call方法重载 实现一些特殊的Model方法 (魔术方法) * 利用__call方法重载 实现一些特殊的Model方法 (魔术方法)

View File

@@ -15,9 +15,6 @@ use think\Lang;
trait Auto trait Auto
{ {
//protected $validate = []; // 自动验证定义
//protected $auto = []; // 自动完成定义
/** /**
* 创建数据对象 但不保存到数据库 * 创建数据对象 但不保存到数据库
* @access public * @access public

View File

@@ -14,8 +14,6 @@ namespace traits\model;
trait View trait View
{ {
protected $viewFields = [];
/** /**
* 自动检测数据表信息 * 自动检测数据表信息
* @access protected * @access protected