belongsTo('User', 'user4s_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function startlevel() { return $this->belongsTo('Level', 'start', 'id', [], 'LEFT')->setEagerlyType(0); } public function endlevel() { return $this->belongsTo('Level', 'end', 'id', [], 'LEFT')->setEagerlyType(0); } public function admin() { return $this->belongsTo('app\common\model\Admin', 'admin_id', 'id', [], 'LEFT')->setEagerlyType(0); } }