__('Hege_status 1'), '2' => __('Hege_status 2'), '3' => __('Hege_status 3')]; } public function getHegeStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['hege_status']) ? $data['hege_status'] : ''); $list = $this->getHegeStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function jiance() { return $this->belongsTo('Jiance', 'jiance_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function project() { return $this->belongsTo('app\admin\model\jiance\Project', 'project_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function worker() { return $this->belongsTo('Worker', 'worker_id', 'id', [], 'LEFT')->setEagerlyType(0); } }