Skip to content

Commit

Permalink
Merge pull request #12 from holtkamp/patch-1
Browse files Browse the repository at this point in the history
Relationship::isIncluded() => Relationship::hasIncludedResource()
  • Loading branch information
kocsismate authored Mar 22, 2019
2 parents cb732bc + 01dd1c4 commit 1fcf20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ $resourceLinkage = $relationship->firstResourceLink();
$resourceLinkage = $relationship->resourceLinks();

// Checks if a specific resource object is included
$isIncluded = $relationship->isIncluded("address", "abcd");
$isIncluded = $relationship->hasIncludedResource("address", "abcd");

// Returns the resource object of a to-one relationship as a `ResourceObject` instance
// or throws an exception otherwise or when the relationship is empty
Expand Down

0 comments on commit 1fcf20d

Please sign in to comment.