예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMenu()
 {
     return $this->hasOne(MenuRecord::className(), ['id' => 'menu_id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMenus()
 {
     return $this->hasMany(MenuRecord::className(), ['web_id' => 'id']);
 }