'bigint',// 'role_name' =>'varchar',//角色名称 'status' =>'int',//状态 'level' =>'varchar',//级别 1/2/3 'desc' =>'varchar',//描述 'companyNo' =>'varchar',//业务公司编号 'addtime' =>'datetime',// 'updatetime' =>'datetime',// ]; protected $updateTime='updatetime'; protected $createTime='addtime'; public function RoleInfo(){ return $this->belongsTo('RoleAction','id','role_id'); } public function ProcessInfo(){ return $this->belongsTo('RoleProcess','id','role_id'); } }