Skip to content

Commit d1f196f

Browse files
activityLazyLoading should be defined as a method, so used it as such
1 parent e05f3e0 commit d1f196f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GetStream/StreamLaravel/Enrich.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ private function retrieveObjects($references)
5050
foreach ($references as $content_type => $content_ids) {
5151
$content_type_model = new $content_type;
5252
$with = array();
53-
if (property_exists($content_type_model, 'activityLazyLoading')) {
54-
$with = $content_type_model->activityLazyLoading;
53+
if (method_exists($content_type_model, 'activityLazyLoading')) {
54+
$with = $content_type_model->activityLazyLoading();
5555
}
5656
$fetched = $this->fromDb($content_type_model, array_keys($content_ids), $with);
5757
$objects[$content_type] = $fetched;

0 commit comments

Comments
 (0)