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