| Methods |
public
|
setEntityManager(EntityManagerInterface $em): void
|
#
|
protected
|
initialize()
{@inheritDoc}
|
#
|
protected
|
onNotFoundMetadata($className)
{@inheritDoc}
|
#
|
protected
|
doLoadMetadata($class, $parent, $rootEntityFound, array $nonSuperclassParents)
{@inheritDoc}
Parameters
| $rootEntityFound |
True when there is another entity (non-mapped superclass) class above the current class in the PHP class hierarchy.
|
| $nonSuperclassParents |
All parent class names that are not marked as mapped superclasses, with the direct parent class being the first and the root entity class the last element.
|
Implements
|
#
|
protected
|
validateRuntimeMetadata(ClassMetadata $class, ClassMetadata|null $parent): void
Validate runtime metadata is correctly defined.
Validate runtime metadata is correctly defined.
Throws
|
#
|
protected
|
newClassMetadataInstance($className)
{@inheritDoc}
|
#
|
private
|
addDefaultDiscriminatorMap(ClassMetadata $class): void
Adds a default discriminator map if no one is given
Adds a default discriminator map if no one is given
If an entity is of any inheritance type and does not contain a
discriminator map, then the map is generated automatically. This process
is expensive computation wise.
The automatically generated discriminator map contains the lowercase short name of
each class as key.
Throws
|
#
|
private
|
findAbstractEntityClassesNotListedInDiscriminatorMap(ClassMetadata $rootEntityClass): void
|
#
|
private
|
peekIfIsMappedSuperclass(class-string $className): bool
|
#
|
private
|
getShortName(class-string $className): string
Gets the lower-case short name of a class.
Gets the lower-case short name of a class.
|
#
|
private
|
addMappingInheritanceInformation(
AssociationMapping|EmbeddedClassMapping|FieldMapping &$mapping,
ClassMetadata $parentClass,
): void
Puts the `inherited` and `declared` values into mapping information for fields, associations
and embedded classes.
Puts the inherited and declared values into mapping information for fields, associations
and embedded classes.
|
#
|
private
|
addInheritedFields(ClassMetadata $subClass, ClassMetadata $parentClass): void
Adds inherited fields to the subclass mapping.
Adds inherited fields to the subclass mapping.
|
#
|
private
|
addInheritedRelations(ClassMetadata $subClass, ClassMetadata $parentClass): void
Adds inherited association mappings to the subclass mapping.
Adds inherited association mappings to the subclass mapping.
Throws
|
#
|
private
|
addInheritedEmbeddedClasses(ClassMetadata $subClass, ClassMetadata $parentClass): void
|
#
|
private
|
addNestedEmbeddedClasses(ClassMetadata $subClass, ClassMetadata $parentClass, string $prefix): void
Adds nested embedded classes metadata to a parent class.
Adds nested embedded classes metadata to a parent class.
Parameters
| $subClass |
Sub embedded class metadata to add nested embedded classes metadata from.
|
| $parentClass |
Parent class to add nested embedded classes metadata to.
|
| $prefix |
Embedded classes' prefix to use for nested embedded classes field names.
|
|
#
|
private
|
addInheritedIndexes(ClassMetadata $subClass, ClassMetadata $parentClass): void
Copy the table indices from the parent class superclass to the child class
Copy the table indices from the parent class superclass to the child class
|
#
|
private
|
addInheritedNamedQueries(ClassMetadata $subClass, ClassMetadata $parentClass): void
Adds inherited named queries to the subclass mapping.
Adds inherited named queries to the subclass mapping.
|
#
|
private
|
addInheritedNamedNativeQueries(ClassMetadata $subClass, ClassMetadata $parentClass): void
Adds inherited named native queries to the subclass mapping.
Adds inherited named native queries to the subclass mapping.
|
#
|
private
|
addInheritedSqlResultSetMappings(ClassMetadata $subClass, ClassMetadata $parentClass): void
Adds inherited sql result set mappings to the subclass mapping.
Adds inherited sql result set mappings to the subclass mapping.
|
#
|
private
|
completeIdGeneratorMapping(ClassMetadataInfo $class): void
Completes the ID generator mapping. If "auto" is specified we choose the generator
most appropriate for the targeted…
Completes the ID generator mapping. If "auto" is specified we choose the generator
most appropriate for the targeted database platform.
Throws
|
#
|
private
|
determineIdGeneratorStrategy(AbstractPlatform $platform): int
|
#
|
private
|
truncateSequenceName(string $schemaElementName): string
|
#
|
private
|
inheritIdGeneratorMapping(ClassMetadataInfo $class, ClassMetadataInfo $parent): void
Inherits the ID generator mapping from a parent class.
Inherits the ID generator mapping from a parent class.
|
#
|
protected
|
wakeupReflection(ClassMetadata $class, ReflectionService $reflService)
{@inheritDoc}
|
#
|
protected
|
initializeReflection(ClassMetadata $class, ReflectionService $reflService)
{@inheritDoc}
|
#
|
protected
|
getFqcnFromAlias($namespaceAlias, $simpleClassName): class-string
Deprecated
This method will be removed in ORM 3.0.
|
#
|
protected
|
getDriver()
{@inheritDoc}
|
#
|
protected
|
isEntity(ClassMetadata $class)
{@inheritDoc}
|
#
|
private
|
getTargetPlatform(): AbstractPlatform
|
#
|