/** * @return \yii\db\ActiveQuery */ public function getEtapa() { return $this->hasOne(Etapa::className(), ['id' => 'etapaid']); }