示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCmsSimpleMenus()
 {
     return $this->hasMany(CmsSimpleMenu::className(), ['cms_simple_menu_group_id' => 'id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCmsSimpleMenu()
 {
     return $this->hasOne(CmsSimpleMenu::className(), ['id' => 'cms_simple_menu_id']);
 }