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