/**
  * @return \yii\db\ActiveQuery
  */
 public function getRbacItems()
 {
     return $this->hasMany(RbacItem::className(), ['rule_name' => 'name']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRbacItemChildren()
 {
     return $this->hasMany(RbacItem::className(), ['child' => 'name']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getItemName()
 {
     return $this->hasOne(RbacItem::className(), ['name' => 'item_name']);
 }