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