/**
  * @return \yii\db\ActiveQuery
  */
 public function getItemName()
 {
     return $this->hasOne(AuthItem::className(), ['name' => 'item_name']);
 }
Example #2
0
 public function getPermissions()
 {
     return AuthItem::find()->where(['type' => 2])->all();
 }