/** * @return \yii\db\ActiveQuery */ public function getProfiles() { return $this->hasMany(\common\models\profile\Profile::className(), ['event_id' => 'id']); }