Add budget limit currency ID.

This commit is contained in:
James Cole
2018-09-06 07:38:26 +02:00
parent 7bca2298a0
commit 28e7440726
8 changed files with 85 additions and 9 deletions

View File

@@ -39,6 +39,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property string $amount
* @property int $budget_id
* @property string spent
* @property int $transaction_currency_id
*/
class BudgetLimit extends Model
{
@@ -89,4 +90,13 @@ class BudgetLimit extends Model
{
return $this->belongsTo(Budget::class);
}
/**
* @codeCoverageIgnore
* @return BelongsTo
*/
public function transactionCurrency(): BelongsTo
{
return $this->belongsTo(TransactionCurrency::class);
}
}