We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e05f3e0 commit d1f196fCopy full SHA for d1f196f
src/GetStream/StreamLaravel/Enrich.php
@@ -50,8 +50,8 @@ private function retrieveObjects($references)
50
foreach ($references as $content_type => $content_ids) {
51
$content_type_model = new $content_type;
52
$with = array();
53
- if (property_exists($content_type_model, 'activityLazyLoading')) {
54
- $with = $content_type_model->activityLazyLoading;
+ if (method_exists($content_type_model, 'activityLazyLoading')) {
+ $with = $content_type_model->activityLazyLoading();
55
}
56
$fetched = $this->fromDb($content_type_model, array_keys($content_ids), $with);
57
$objects[$content_type] = $fetched;
0 commit comments