RVRNEXT-39 make main currency nullable

This commit is contained in:
Bence Pőcze 2023-06-16 21:28:42 +02:00
parent e122248a97
commit c7641b85e7
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -33,12 +33,12 @@ class Community extends ModelWithSlug
$this->currency = $currency;
}
public function setMainCurrency(Currency $mainCurrency): void
public function setMainCurrency(?Currency $mainCurrency): void
{
$this->mainCurrency = $mainCurrency;
}
public function setMainCurrencyId(int $mainCurrencyId): void
public function setMainCurrencyId(?int $mainCurrencyId): void
{
$this->mainCurrencyId = $mainCurrencyId;
}