/** * 获取父菜单 */ public function getFather() { return $this->hasOne(TMenu::className(), ['id' => 'parentid']); }