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