Documentation

StaticPHPDriver
in package
implements MappingDriver

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

Tags
link
www.doctrine-project.org
since
2.2
author

Benjamin Eberlei kontakt@beberlei.de

author

Guilherme Blanco guilhermeblanco@hotmail.com

author

Jonathan H. Wage jonwage@gmail.com

author

Roman Borschel roman@code-factory.org

Interfaces, Classes and Traits

MappingDriver
Contract for metadata drivers.

Table of Contents

$classNames  : array<string|int, mixed>
Map of all class names.
$paths  : array<string|int, mixed>
Paths of entity directories.
__construct()  : mixed
Constructor.
addPaths()  : void
Adds paths.
getAllClassNames()  : array<string|int, mixed>
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, mixed> $classNames

$paths

Paths of entity directories.

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

Methods

__construct()

Constructor.

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

addPaths()

Adds paths.

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

getAllClassNames()

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

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

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

Return values
array<string|int, mixed>

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