/** * @return \yii\db\ActiveQuery */ public function getCertificates() { return $this->hasMany(Certificates::className(), ['InstID' => 'Inst_ID']); }