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

setEntityManager(EntityManager $em)

No description

initialize()

{@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

setEntityManager(EntityManager $em)

Parameters

EntityManager $em

protected initialize()

{@inheritDoc}.

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