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