make left joins really work
All checks were successful
soko-web/pipeline/pr-master This commit looks good
All checks were successful
soko-web/pipeline/pr-master This commit looks good
This commit is contained in:
parent
b47ef720d5
commit
373fccaa91
@ -227,12 +227,16 @@ class PersistentDataManager implements IPersistentDataManager
|
|||||||
|
|
||||||
next($data);
|
next($data);
|
||||||
} else if (substr($key, 0, strlen($relation . '__')) === $relation . '__') {
|
} else if (substr($key, 0, strlen($relation . '__')) === $relation . '__') {
|
||||||
|
if ($data[$relation . '__id'] !== null) {
|
||||||
$relationType = current($relations);
|
$relationType = current($relations);
|
||||||
$relationModel = new $relationType();
|
$relationModel = new $relationType();
|
||||||
$this->fillWithData($data, $relationModel, $withRelations, $relation);
|
$this->fillWithData($data, $relationModel, $withRelations, $relation);
|
||||||
|
|
||||||
$method = 'set' . str_replace('_', '', ucwords($relation, '_'));
|
$method = 'set' . str_replace('_', '', ucwords($relation, '_'));
|
||||||
$model->$method($relationModel);
|
$model->$method($relationModel);
|
||||||
|
} else {
|
||||||
|
next($data);
|
||||||
|
}
|
||||||
|
|
||||||
next($relations);
|
next($relations);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user