abstract class AbstractClassMetadataFactory implements ClassMetadataFactory (View source)

AbstractClassMetadataFactory is the base of ClassMetadata object creation that contain all the metadata mapping information of a class which describes how a class should be mapped to a relational database.

Constants

AUTOGENERATE_NEVER

Never autogenerate a class metadata and rely that it was generated by some process before deployment.

AUTOGENERATE_ALWAYS

Always generates a new class metadata in every request. This is only sane during development.

AUTOGENERATE_FILE_NOT_EXISTS

Autogenerate the class metadata when the file does not exist.

This strategy causes a file exists call whenever any metadata is used the first time in a request.

Properties

protected ClassMetadataDefinitionFactory $definitionFactory
protected MappingDriver $mappingDriver

Methods

__construct(MetadataConfiguration $configuration)

No description

getAllMetadata()

{@inheritdoc}

getMetadataFor($className)

{@inheritdoc}

hasMetadataFor($className)

{@inheritdoc}

setMetadataFor($className, $class)

{@inheritdoc}

isTransient($className)

{@inheritdoc}

createClassMetadata(ClassMetadataDefinition $definition)

No description

Details

__construct(MetadataConfiguration $configuration)

Parameters

MetadataConfiguration $configuration

getAllMetadata()

{@inheritdoc}

getMetadataFor($className)

{@inheritdoc}

Parameters

$className

hasMetadataFor($className)

{@inheritdoc}

Parameters

$className

setMetadataFor($className, $class)

{@inheritdoc}

Parameters

$className
$class

isTransient($className)

{@inheritdoc}

Parameters

$className

protected createClassMetadata(ClassMetadataDefinition $definition)

Parameters

ClassMetadataDefinition $definition

abstract protected ReflectionService getReflectionService()

Return Value

ReflectionService