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