abstract class EntityClassMetadata extends ComponentMetadata (View source)

Properties

protected string $className from ComponentMetadata
protected ComponentMetadata|null $parent from ComponentMetadata
protected ReflectionClass|null $reflectionClass The ReflectionClass instance of the component class. from ComponentMetadata
protected CacheMetadata|null $cache from ComponentMetadata
protected Property[] $declaredProperties from ComponentMetadata
protected string $entityName
protected string|null $customRepositoryClassName
protected Property|null $declaredVersion
protected bool $readOnly Whether this class describes the mapping of a read-only class.
protected SubClassMetadata[] $subClasses List of all sub-classes (descendants) metadata.
protected string[][] $lifecycleCallbacks READ-ONLY: The registered lifecycle callbacks for entities of this class.
protected string[][] $entityListeners READ-ONLY: The registered entity listeners.
protected string[] $identifier READ-ONLY: The field names of all fields that are part of the identifier/primary key of the mapped entity class.
protected TableMetadata $table READ-ONLY: The primary table metadata.

Methods

__construct(string $className, ClassMetadataBuildingContext $metadataBuildingContext)

No description

getClassName()

No description

setParent(ComponentMetadata $parent)

No description

getParent()

No description

getReflectionClass()

No description

setCache(CacheMetadata|null $cache = null)

No description

getCache()

No description

iterable|Property[]
addDeclaredProperty(Property $property)

No description

hasDeclaredProperty(string $propertyName)

No description

iterable|Property[]
getPropertiesIterator()

No description

getProperty(string $propertyName)

No description

hasProperty(string $propertyName)

No description

getEntityName()

No description

setEntityName(string $entityName)

No description

getCustomRepositoryClassName()

No description

setCustomRepositoryClassName(string|null $customRepositoryClassName)

No description

getDeclaredVersion()

No description

setDeclaredVersion(Property $property)

No description

getVersion()

No description

isVersioned()

No description

setReadOnly(bool $readOnly)

No description

isReadOnly()

No description

addSubClass(SubClassMetadata $subClassMetadata)

No description

hasSubClasses()

No description

getSubClassIterator()

No description

getRootClass()

No description

Details

__construct(string $className, ClassMetadataBuildingContext $metadataBuildingContext)

Parameters

string $className
ClassMetadataBuildingContext $metadataBuildingContext

getClassName()

setParent(ComponentMetadata $parent)

Parameters

ComponentMetadata $parent

getParent()

getReflectionClass()

setCache(CacheMetadata|null $cache = null)

Parameters

CacheMetadata|null $cache

getCache()

iterable|Property[] getDeclaredPropertiesIterator()

Return Value

iterable|Property[]

addDeclaredProperty(Property $property)

Parameters

Property $property

Exceptions

ReflectionException
MappingException

hasDeclaredProperty(string $propertyName)

Parameters

string $propertyName

iterable|Property[] getPropertiesIterator()

Return Value

iterable|Property[]

getProperty(string $propertyName)

Parameters

string $propertyName

hasProperty(string $propertyName)

Parameters

string $propertyName

getEntityName()

setEntityName(string $entityName)

Parameters

string $entityName

getCustomRepositoryClassName()

setCustomRepositoryClassName(string|null $customRepositoryClassName)

Parameters

string|null $customRepositoryClassName

getDeclaredVersion()

setDeclaredVersion(Property $property)

Parameters

Property $property

getVersion()

isVersioned()

setReadOnly(bool $readOnly)

Parameters

bool $readOnly

isReadOnly()

addSubClass(SubClassMetadata $subClassMetadata)

Parameters

SubClassMetadata $subClassMetadata

Exceptions

MappingException

hasSubClasses()

getSubClassIterator()

abstract getRootClass()