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
Table of Contents
Properties
- $classNames : array<int, string>
- Map of all class names.
- $paths : array<int, string>
- Paths of entity directories.
Methods
- __construct() : mixed
- addPaths() : void
- getAllClassNames() : array<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<int, string>
$classNames
Tags
$paths
Paths of entity directories.
private
array<int, string>
$paths
= []
Methods
__construct()
public
__construct(array<int, string>|string $paths) : mixed
Parameters
- $paths : array<int, string>|string
addPaths()
public
addPaths(array<int, string> $paths) : void
Parameters
- $paths : array<int, string>
getAllClassNames()
Gets the names of all mapped classes known to this driver.
public
getAllClassNames() : array<int, string>
Tags
Return values
array<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(string $className) : bool
Parameters
- $className : string
Return values
boolloadMetadataForClass()
Loads the metadata for the specified class into the provided container.
public
loadMetadataForClass(string $className, ClassMetadata $metadata) : void
Parameters
- $className : string
- $metadata : ClassMetadata