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