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 document database.

Properties

protected $cacheSalt {@inheritdoc}

Methods

__construct(DocumentManagerInterface $dm)

Creates a new factory instance that uses the given DocumentManager instance.

getMetadataFor($className)

{@inheritdoc}

loadMetadata($className)

{@inheritdoc}

newClassMetadataInstance($className)

{@inheritdoc}

getFqcnFromAlias($namespaceAlias, $simpleClassName)

{@inheritdoc}

doLoadMetadata(ClassMetadata $class, ClassMetadata|null $parent, bool $rootEntityFound, array $nonSuperclassParents)

Actually loads PHPCR-ODM metadata from the underlying metadata.

validateRuntimeMetadata(ClassMetadata $class, $parent)

Validate runtime metadata is correctly defined.

getDriver()

{@inheritdoc}

initialize()

{@inheritdoc}

initializeReflection(ClassMetadata $class, ReflectionService $reflService)

{@inheritdoc}

wakeupReflection(ClassMetadata $class, ReflectionService $reflService)

{@inheritdoc}

isEntity(ClassMetadata $class)

{@inheritdoc}

Details

__construct(DocumentManagerInterface $dm)

Creates a new factory instance that uses the given DocumentManager instance.

Parameters

DocumentManagerInterface $dm The DocumentManager instance

getMetadataFor($className)

{@inheritdoc}

Parameters

$className

Exceptions

MappingException

loadMetadata($className)

{@inheritdoc}

Parameters

$className

Exceptions

MappingException

protected newClassMetadataInstance($className)

{@inheritdoc}

Parameters

$className

protected getFqcnFromAlias($namespaceAlias, $simpleClassName)

{@inheritdoc}

Parameters

$namespaceAlias
$simpleClassName

protected doLoadMetadata(ClassMetadata $class, ClassMetadata|null $parent, bool $rootEntityFound, array $nonSuperclassParents)

Actually loads PHPCR-ODM metadata from the underlying metadata.

Parameters

ClassMetadata $class
ClassMetadata|null $parent
bool $rootEntityFound
array $nonSuperclassParents All parent class names that are not marked as mapped superclasses.

protected validateRuntimeMetadata(ClassMetadata $class, $parent)

Validate runtime metadata is correctly defined.

Parameters

ClassMetadata $class
$parent

Exceptions

MappingException

protected getDriver()

{@inheritdoc}

protected initialize()

{@inheritdoc}

protected initializeReflection(ClassMetadata $class, ReflectionService $reflService)

{@inheritdoc}

Parameters

ClassMetadata $class
ReflectionService $reflService

protected wakeupReflection(ClassMetadata $class, ReflectionService $reflService)

{@inheritdoc}

Parameters

ClassMetadata $class
ReflectionService $reflService

protected isEntity(ClassMetadata $class)

{@inheritdoc}

Parameters

ClassMetadata $class