From 127630c0cade6efb0d9e257d5d1dd679c1c73690 Mon Sep 17 00:00:00 2001 From: Ka Yue Yeung Date: Mon, 13 Apr 2015 14:38:28 +0800 Subject: [PATCH] Set a default exclusion configuration to Embedded --- src/Hateoas/Configuration/Relation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hateoas/Configuration/Relation.php b/src/Hateoas/Configuration/Relation.php index d4dc99b8..5aef536a 100644 --- a/src/Hateoas/Configuration/Relation.php +++ b/src/Hateoas/Configuration/Relation.php @@ -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) {