mediatekformation

StaticPHPDriver extends StaticPHPDriver
in package

The StaticPHPDriver calls a static loadMetadata() method on your entity classes where you can manually populate the ClassMetadata instance.

Tags
deprecated

this driver will be removed. Use Doctrine\Persistence\Mapping\Driver\StaticPHPDriver instead

Table of Contents

$classNames  : array<string|int, string>
Map of all class names.
$paths  : array<string|int, string>
Paths of entity directories.
__construct()  : mixed
addPaths()  : void
Adds paths.
getAllClassNames()  : array<string|int, string>
Gets the names of all mapped classes known to this driver.
isTransient()  : bool
Returns whether the class with the specified name should have its metadata loaded.
loadMetadataForClass()  : void
Loads the metadata for the specified class into the provided container.

Properties

$classNames

Map of all class names.

private array<string|int, string> $classNames
Tags
psalm-var

list

$paths

Paths of entity directories.

private array<string|int, string> $paths = []

Methods

__construct()

public __construct(array<string|int, string>|string $paths) : mixed
Parameters
$paths : array<string|int, string>|string
Return values
mixed

addPaths()

Adds paths.

public addPaths(array<string|int, string> $paths) : void
Parameters
$paths : array<string|int, string>
Return values
void

getAllClassNames()

Gets the names of all mapped classes known to this driver.

public getAllClassNames() : array<string|int, string>
Tags
todo

Same code exists in AnnotationDriver, should we re-use it somehow or not worry about it?

Return values
array<string|int, string>

The names of all mapped classes known to this driver.

isTransient()

Returns whether the class with the specified name should have its metadata loaded.

public isTransient(mixed $className) : bool
Parameters
$className : mixed
Return values
bool

loadMetadataForClass()

Loads the metadata for the specified class into the provided container.

public loadMetadataForClass(mixed $className, ClassMetadata $metadata) : void
Parameters
$className : mixed
$metadata : ClassMetadata
Return values
void

Search results