Important: The class $name does not necesarily exist at this point here.
Scenarios in a code-generation setup might have access to XML/YAML
Mapping files without the actual PHP code existing here. That is why the
{@see \Doctrine\Common\Persistence\Mapping\ReflectionService} interface
should be used for reflection.
protected loadMetadata ( string $name ) : array | ||
$name | string | The name of the class for which the metadata should get loaded. |
리턴 | array |
/** * {@inheritdoc} * * @throws MappingException */ public function loadMetadata($className) { if (class_exists($className)) { return parent::loadMetadata($className); } throw MappingException::classNotFound($className); }
/** * {@inheritDoc} */ protected function loadMetadata($name) { $loaded = parent::loadMetadata($name); array_map([$this, 'resolveDiscriminatorValue'], array_map([$this, 'getMetadataFor'], $loaded)); return $loaded; }