Skip to content

Commit b890572

Browse files
committed
reload item after dealing with relationshiops
1 parent 9f01159 commit b890572

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Contracts/Relationships.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ protected function storeRelated($item, array $includes, array $data): void
110110
break;
111111
default:
112112
throw new ApiException("$type mapping not implemented yet");
113-
break;
113+
break;
114114
}
115+
$item->load($with);
115116
}
116117
}
117118

0 commit comments

Comments
 (0)