/** * {@inheritdoc} */ public function guessFieldResolveConfig(FieldContext $fieldContext) { /** @var Type $type */ $type = $fieldContext->getContainer(); if (!empty($type->getModel())) { $className = $type->getModel(); if (null !== ($accessor = $this->getAccessor($className, $fieldContext))) { return new ResolveConfigGuess(['method' => $accessor, 'handler' => 'property'], Guess::HIGH_CONFIDENCE); } } }