iterate in $data until fields for empty relation are over #22

Merged
bence merged 1 commits from bugfix/fix-model-loading-when-left-join-is-empty into master 2023-05-28 15:48:31 +02:00
Showing only changes of commit da2801560d - Show all commits

View File

@ -278,7 +278,10 @@ class PersistentDataManager implements IPersistentDataManager
$method = 'set' . str_replace('_', '', ucwords($relation, '_'));
$model->$method($relationModel);
} else {
next($data);
while (substr($key, 0, strlen($relation . '__')) === $relation . '__') {
next($data);
$key = key($data);
}
}
next($relations);