Skip to content

Commit

Permalink
fix(jsonapi): exit loop when relationship class is found
Browse files Browse the repository at this point in the history
  • Loading branch information
GwendolenLynch committed Apr 16, 2024
1 parent b77e7ab commit 23c6e80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/JsonApi/JsonSchema/SchemaFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ private function getRelationship(string $resourceClass, string $property, ?array
// @see https://github.com/api-platform/core/issues/5501
// @see https://github.com/api-platform/core/pull/5722
$hasOperations ??= $operation->canRead();
break;
}

return $isRelationship ? [$isOne, $hasOperations, $className] : null;
Expand Down

0 comments on commit 23c6e80

Please sign in to comment.