class DisconnectedClassMetadataFactory extends ClassMetadataFactory (View source)

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

Properties

protected $cacheSalt from ClassMetadataFactory

Methods

setDocumentManager(DocumentManager $dm)

Sets the DocumentManager instance for this class.

setConfiguration(Configuration $config)

Sets the Configuration instance

initialize()

Lazy initialization of this stuff, especially the metadata driver, since these are not needed at all when a metadata cache is active.

getFqcnFromAlias($namespaceAlias, $simpleClassName)

{@inheritDoc}

getDriver()

{@inheritDoc}

wakeupReflection(ClassMetadata $class, ReflectionService $reflService)

{@inheritDoc}

initializeReflection(ClassMetadata $class, ReflectionService $reflService)

{@inheritDoc}

isEntity(ClassMetadata $class)

{@inheritDoc}

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

{@inheritDoc}

validateIdentifier(ClassMetadata $class)

No description

newClassMetadataInstance(string $className)

No description

getParentClasses($name)

No description

Details

setDocumentManager(DocumentManager $dm)

Sets the DocumentManager instance for this class.

Parameters

DocumentManager $dm The DocumentManager instance

setConfiguration(Configuration $config)

Sets the Configuration instance

Parameters

Configuration $config

protected initialize()

Lazy initialization of this stuff, especially the metadata driver, since these are not needed at all when a metadata cache is active.

protected getFqcnFromAlias($namespaceAlias, $simpleClassName)

{@inheritDoc}

Parameters

$namespaceAlias
$simpleClassName

protected getDriver()

{@inheritDoc}

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 isEntity(ClassMetadata $class)

{@inheritDoc}

Parameters

ClassMetadata $class

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

{@inheritDoc}

Parameters

$class
$parent
$rootEntityFound
array $nonSuperclassParents

protected validateIdentifier(ClassMetadata $class)

Parameters

ClassMetadata $class

protected ClassMetadata newClassMetadataInstance(string $className)

Parameters

string $className

Return Value

ClassMetadata

protected getParentClasses($name)

Parameters

$name