| Methods |
public
|
__construct(Reader $reader, string|string[]|null $paths = null, bool $reportFieldsWhereDeclared = false)
Initializes a new AnnotationDriver that uses the given AnnotationReader for reading
docblock annotations.
Initializes a new AnnotationDriver that uses the given AnnotationReader for reading
docblock annotations.
Parameters
| $reader |
The AnnotationReader to use
|
| $paths |
One or multiple paths where mapping classes can be found.
|
|
#
|
public
|
loadMetadataForClass<T is object>(class-string<T> $className, ClassMetadata<T> $metadata)
{@inheritDoc}
|
#
|
private
|
loadRelationShipMapping(
ReflectionProperty $property,
array<string, mixed> &$mapping,
ClassMetadata $metadata,
mixed[] $joinColumns,
class-string $className,
): void
|
#
|
private
|
getFetchMode(class-string $className, string $fetchMode): int
Attempts to resolve the fetch mode.
Attempts to resolve the fetch mode.
Throws
|
#
|
private
|
getGeneratedMode(string $generatedMode): int
Attempts to resolve the generated mode.
Attempts to resolve the generated mode.
Throws
|
#
|
private
|
getMethodCallbacks(ReflectionMethod $method): list<array{string, string}>
Parses the given method.
|
#
|
private
|
joinColumnToArray(JoinColumn $joinColumn): mixed[]
Parse the given JoinColumn as array
Parse the given JoinColumn as array
|
#
|
private
|
columnToArray(string $fieldName, Column $column): mixed[]
Parse the given Column as array
Parse the given Column as array
|
#
|
public
|
getReader(): Reader
Retrieve the current annotation reader
Retrieve the current annotation reader
|
#
|
public
|
isTransient($className)
{@inheritDoc}
|
#
|
public
static
|
create(mixed[]|string $paths = [], ?AnnotationReader $reader = null): AnnotationDriver
Factory method for the Annotation Driver.
Factory method for the Annotation Driver.
|
#
|