Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jul 19, 2024
1 parent 7ec3f27 commit 7456486
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Fieldtypes/BelongsToFieldtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function toGqlType()
return $item->get($info->fieldName);
}

return $item->getAttribute($info->fieldName);
return $item->{$info->fieldName};
},
];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/HasManyFieldtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function toGqlType()
return $item->get($info->fieldName);
}

return $item->getAttribute($info->fieldName);
return $item->{$info->fieldName};
},
];
}
Expand Down

0 comments on commit 7456486

Please sign in to comment.