Closed SilverioMiranda closed 6 years ago
See this function (https://github.com/doctrine/DoctrineModule/blob/master/src/DoctrineModule/Service/AbstractFactory.php#L78)
public function getOptions(ContainerInterface $container, $key, $name = null) { if ($name === null) { $name = $this->getName(); } $options = $container->get('config'); $options = $options['doctrine']; if ($mappingType = $this->getMappingType()) { $options = $options[$mappingType]; } $options = isset($options[$key][$name]) ? $options[$key][$name] : null; if (null === $options) { throw new RuntimeException( sprintf( 'Options with name "%s" could not be found in "doctrine.%s".', $name, $key ) ); } $optionsClass = $this->getOptionsClass(); return new $optionsClass($options); }
Is $mappingType a valid variable?
Yes, that's an intentional assignment. With doctrine/coding-standard this kind of assignment will no longer be allowed.
doctrine/coding-standard
See this function (https://github.com/doctrine/DoctrineModule/blob/master/src/DoctrineModule/Service/AbstractFactory.php#L78)
Is $mappingType a valid variable?