Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
railken committed Mar 28, 2024
2 parents 7685d65 + 70fab9d commit ef04133
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Services/HasRelationSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ public function serializeBelongsTo($name, $relation): iterable
});

if (!$attribute) {
throw new \Exception(sprintf(
"Cannot find the attribute BelongsTo of the relation %s:%s, searching with localKey %s",
$name,
$relation['name'],
$relation['localKey']
));
throw new \Exception(sprintf('Cannot find the attribute BelongsTo of the relation %s:%s, searching with localKey %s', $name, $relation['name'], $relation['localKey']));
}

$data = $attribute->getManager()->newEntity()->getMorphClass();
Expand Down

0 comments on commit ef04133

Please sign in to comment.