/** * @return \yii\db\ActiveQuery */ public function getMenuType() { return $this->hasOne(MenuType::className(), ['id' => 'menu_type_id']); }