/** * @return \yii\db\ActiveQuery */ public function getUserDomains() { return $this->hasMany(UserDomain::className(), ['domain_id' => 'id']); }