class DisconnectedClassMetadataFactory extends ClassMetadataFactory (View source)

The DisconnectedClassMetadataFactory is used to create ClassMetadataInfo objects that do not require the entity class actually exist. This allows us to load some mapping information and use it to do things like generate code from the mapping information.

Methods

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}

StaticReflectionService
getReflectionService()

No description

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

StaticReflectionService getReflectionService()

Return Value

StaticReflectionService