| Methods |
public
|
__construct(string $entityNamespace, ?ManagerRegistry $registry = null, ?array $mappingDriversByPrefix = null)
|
#
|
public
|
getRegistry(): ManagerRegistry
|
#
|
private
|
isDoctrineInstalled(): bool
|
#
|
public
|
getEntityNamespace(): string
|
#
|
public
|
doesClassUseDriver(string $className, string $driverClass): bool
|
#
|
public
|
doesClassUsesAttributes(string $className): bool
|
#
|
public
|
isDoctrineSupportingAttributes(): bool
|
#
|
public
|
getEntitiesForAutocomplete(): array
|
#
|
public
|
getMetadata(string $classOrNamespace = null, bool $disconnected = false): array|ClassMetadata
|
#
|
public
|
createDoctrineDetails(string $entityClassName): ?EntityDetails
|
#
|
public
|
isClassAMappedEntity(string $className): bool
|
#
|
public
static
|
canColumnTypeBeInferredByPropertyType(string $columnType, string $propertyType): bool
Determines if the property-type will make the column type redundant.
Determines if the property-type will make the column type redundant.
See ClassMetadataInfo::validateAndCompleteTypedFieldMapping()
|
#
|
public
static
|
getPropertyTypeForColumn(string $columnType): ?string
|
#
|
public
static
|
getTypeConstant(string $columnType): ?string
Given the string "column type", this returns the "Types::STRING" constant.
Given the string "column type", this returns the "Types::STRING" constant.
This is, effectively, a reverse lookup: given the final string, give us
the constant to be used in the generated code.
|
#
|
private
|
isInstanceOf($object, string $class): bool
|
#
|
public
|
getPotentialTableName(string $className): string
|
#
|
public
|
isKeyword(string $name): bool
|
#
|
private
|
getMappingDriverForNamespace(string $namespace): ?MappingDriver
this method tries to find the correct MappingDriver for the given namespace/class
To determine which MappingDriver…
this method tries to find the correct MappingDriver for the given namespace/class
To determine which MappingDriver belongs to the class we check the prefixes configured in Doctrine and use the
prefix that has the closest match to the given $namespace.
this helper function is needed to create entities with the configuration of doctrine if they are not yet been registered
in the ManagerRegistry
|
#
|