class ClassMetadataFactory extends AbstractClassMetadataFactory (View source)

The ClassMetadataFactory is used to create ClassMetadata objects that contain all the metadata mapping information of a class which describes how a class should be mapped to a relational database.

Methods

loadMetadata($name)

{@inheritDoc}

initialize()

{@inheritDoc}

onNotFoundMetadata($className)

{@inheritDoc}

doLoadMetadata($class, $parent, $rootEntityFound, array $nonSuperclassParents)

{@inheritDoc}

void
validateRuntimeMetadata(ClassMetadata $class, ClassMetadata|null $parent)

Validate runtime metadata is correctly defined.

newClassMetadataInstance($className)

{@inheritDoc}

wakeupReflection(ClassMetadata $class, ReflectionService $reflService)

{@inheritDoc}

initializeReflection(ClassMetadata $class, ReflectionService $reflService)

{@inheritDoc}

getFqcnFromAlias($namespaceAlias, $simpleClassName)

{@inheritDoc}

getDriver()

{@inheritDoc}

isEntity(ClassMetadata $class)

{@inheritDoc}

Details

protected loadMetadata($name)

{@inheritDoc}

Parameters

$name

setEntityManager(EntityManagerInterface $em)

Parameters

EntityManagerInterface $em

protected initialize()

{@inheritDoc}

protected onNotFoundMetadata($className)

{@inheritDoc}

Parameters

$className

protected doLoadMetadata($class, $parent, $rootEntityFound, array $nonSuperclassParents)

{@inheritDoc}

Parameters

$class
$parent
$rootEntityFound
array $nonSuperclassParents

protected void validateRuntimeMetadata(ClassMetadata $class, ClassMetadata|null $parent)

Validate runtime metadata is correctly defined.

Parameters

ClassMetadata $class
ClassMetadata|null $parent

Return Value

void

Exceptions

MappingException

protected newClassMetadataInstance($className)

{@inheritDoc}

Parameters

$className

protected wakeupReflection(ClassMetadata $class, ReflectionService $reflService)

{@inheritDoc}

Parameters

ClassMetadata $class
ReflectionService $reflService

protected initializeReflection(ClassMetadata $class, ReflectionService $reflService)

{@inheritDoc}

Parameters

ClassMetadata $class
ReflectionService $reflService

protected getFqcnFromAlias($namespaceAlias, $simpleClassName)

{@inheritDoc}

Parameters

$namespaceAlias
$simpleClassName

protected getDriver()

{@inheritDoc}

protected isEntity(ClassMetadata $class)

{@inheritDoc}

Parameters

ClassMetadata $class