src/Definition/Loader/Annotation/AnnotationParserHelper.php 1 location
|
@@ 61-64 (lines=4) @@
|
| 58 |
|
|
| 59 |
|
$objectType = null; |
| 60 |
|
preg_match('/(\w+)(\\\\w+)?\\\\(\w+)$/', $refClass->getName(), $matches); |
| 61 |
|
if (!isset($matches[1]) || !$definitionManager->hasType($matches[1])) { |
| 62 |
|
$error = sprintf('Can`t resolve a valid object type for "%s"', $refClass->getName()); |
| 63 |
|
throw new \RuntimeException($error); |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
return $definitionManager->getType($matches[1]); |
| 67 |
|
} |
src/Definition/Loader/Annotation/FieldConnectionAnnotationParser.php 1 location
|
@@ 76-79 (lines=4) @@
|
| 73 |
|
|
| 74 |
|
$objectType = null; |
| 75 |
|
preg_match('/(\w+)\\\\Field\\\\(\w+)$/', $refClass->getName(), $matches); |
| 76 |
|
if (!isset($matches[1]) || !$definitionManager->hasType($matches[1])) { |
| 77 |
|
$error = sprintf('Can`t resolve a valid object type for field "%s"', $refClass->getName()); |
| 78 |
|
throw new \RuntimeException($error); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
$objectDefinition = $definitionManager->getType($matches[1]); |
| 82 |
|
if ($objectDefinition->hasField($field->getName())) { |