`Repository`: Return null if conversion rules is empty in `getConverter()`

In case the conversion rules to apply on the repository query is not defined
return null in `Repository::getConverter()`.
This commit is contained in:
raviks789 2023-08-15 08:43:25 +02:00
parent aa5db51e77
commit 201706614d
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ abstract class Repository implements Selectable
{
$conversionRules = $this->getConversionRules();
if (! isset($conversionRules[$table])) {
return;
return null;
}
$tableRules = $conversionRules[$table];