mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Better ability to store piggy banks.
This commit is contained in:
@@ -105,4 +105,9 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
||||
$this->user = $user;
|
||||
}
|
||||
}
|
||||
|
||||
#[\Override] public function find(int $currencyId): ?TransactionCurrency
|
||||
{
|
||||
return TransactionCurrency::find($currencyId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,8 @@ interface CurrencyRepositoryInterface
|
||||
*/
|
||||
public function findByCode(string $currencyCode): ?TransactionCurrency;
|
||||
|
||||
public function find(int $currencyId): ?TransactionCurrency;
|
||||
|
||||
/**
|
||||
* Returns the complete set of transactions but needs
|
||||
* no user object.
|
||||
|
||||
Reference in New Issue
Block a user