Skip to content

Commit

Permalink
allow schema search in all imported schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas authored Jan 24, 2017
1 parent bd4e7a8 commit 220b0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 220b0d7

Please sign in to comment.