/** * @return \yii\db\ActiveQuery */ public function getBoletos() { return $this->hasMany(Boleto::className(), ['boleto_cedente_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getBoleto() { return $this->hasOne(Boleto::className(), ['id' => 'boleto_id']); }