|
@@ -16,8 +16,12 @@ class EntityUtils
|
|
|
/**
|
|
/**
|
|
|
* @throws \ReflectionException
|
|
* @throws \ReflectionException
|
|
|
*/
|
|
*/
|
|
|
- public function defaultValueSettersByAccess(mixed $entity, Access $access): void
|
|
|
|
|
|
|
+ public function defaultValueSettersByAccess(mixed $entity, ?Access $access): void
|
|
|
{
|
|
{
|
|
|
|
|
+ if ($access === null) {
|
|
|
|
|
+ // Cas des internal requests (ex: création d'organisation)
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
$this->organizationDefaultValue($entity, $access);
|
|
$this->organizationDefaultValue($entity, $access);
|
|
|
$this->billingSettingDefaultValueDefaultValue($entity, $access);
|
|
$this->billingSettingDefaultValueDefaultValue($entity, $access);
|
|
|
}
|
|
}
|