Skip to content

Commit

Permalink
Merge pull request #195 from kayue/patch-1
Browse files Browse the repository at this point in the history
Set a default exclusion configuration to Embedded
  • Loading branch information
willdurand committed Apr 13, 2015
2 parents d4a36e7 + 127630c commit 56c8d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hateoas/Configuration/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Relation
public function __construct($name, $href = null, $embedded = null, array $attributes = array(), Exclusion $exclusion = null)
{
if (null !== $embedded && !$embedded instanceof Embedded) {
$embedded = new Embedded($embedded);
$embedded = new Embedded($embedded, null, $exclusion);
}

if (null === !$href && null === $embedded) {
Expand Down

0 comments on commit 56c8d7b

Please sign in to comment.