Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAuthAssignments()
 {
     return $this->hasMany(AuthAssignment::className(), ['item_name' => 'name']);
 }
Esempio n. 2
0
 public function getAssignments()
 {
     return $this->hasMany(AuthAssignment::className(), ['user_id' => 'id']);
 }