iterate in $data until fields for empty relation are over #22
@ -278,7 +278,10 @@ class PersistentDataManager implements IPersistentDataManager
|
|||||||
$method = 'set' . str_replace('_', '', ucwords($relation, '_'));
|
$method = 'set' . str_replace('_', '', ucwords($relation, '_'));
|
||||||
$model->$method($relationModel);
|
$model->$method($relationModel);
|
||||||
} else {
|
} else {
|
||||||
|
while (substr($key, 0, strlen($relation . '__')) === $relation . '__') {
|
||||||
next($data);
|
next($data);
|
||||||
|
$key = key($data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
next($relations);
|
next($relations);
|
||||||
|
Loading…
Reference in New Issue
Block a user