Skip to content

Commit 3b5022c

Browse files
committed
Merge branch 'sync'
2 parents 1e263f3 + 89edfbb commit 3b5022c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Sync/Support/SyncIntrospector.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,11 @@ static function (
867867
$data[$idKey],
868868
$filter,
869869
$replace,
870-
static function ($entities) use ($entity): void {
870+
static function ($entities) use ($entity, $property): void {
871+
if (!$entities) {
872+
$entity->{$property} = [];
873+
return;
874+
}
871875
foreach ($entities as $child) {
872876
/** @var ISyncEntity&ITreeable $child */
873877
$entity->addChild($child);

0 commit comments

Comments
 (0)