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