示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getChildrenItems()
 {
     return $this->hasMany(MenuItemRecord::className(), ['parent_id' => 'id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMenuItems()
 {
     return $this->hasMany(MenuItemRecord::className(), ['menu_id' => 'id']);
 }