/** * @return \yii\db\ActiveQuery */ public function getNikkes0() { return $this->hasOne(Peserta::className(), ['nikkes' => 'nikkes']); }
/** * @return \yii\db\ActiveQuery */ public function getPesertas() { return $this->hasMany(Peserta::className(), ['status_peserta_id' => 'id']); }