/** * @return \yii\db\ActiveQuery */ public function getRetornos() { return $this->hasMany(Retorno::className(), ['boleto_cedente_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getRetorno() { return $this->hasOne(Retorno::className(), ['id' => 'retorno_id']); }