From 220b0d7fc4e7b588487fe7e2ddfcf6193b522643 Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Tue, 24 Jan 2017 11:52:40 +0100 Subject: [PATCH] allow schema search in all imported schemas --- src/Schema/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schema/Schema.php b/src/Schema/Schema.php index e96d3f65..57fdaeed 100644 --- a/src/Schema/Schema.php +++ b/src/Schema/Schema.php @@ -238,7 +238,7 @@ protected function findSomething($getter, $name, $namespace = null, &$calling = } } foreach ($this->getSchemas() as $childSchema) { - if ($childSchema->getTargetNamespace() === $namespace && !isset($calling[spl_object_hash($childSchema)])) { + if (!isset($calling[spl_object_hash($childSchema)])) { try { return $this->typeCache[$cid] = $childSchema->findSomething($getter, $name, $namespace, $calling); } catch (TypeNotFoundException $e) {