Documentation

MappingDriverChain
in package
implements MappingDriver

The DriverChain allows you to add multiple other mapping drivers for certain namespaces.

Tags
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

$defaultDriver  : MappingDriver|null
The default driver.
$drivers  : array<string|int, mixed>
addDriver()  : void
Adds a nested driver.
getAllClassNames()  : array<string|int, mixed>
Gets the names of all mapped classes known to this driver.
getDefaultDriver()  : MappingDriver|null
Gets the default driver.
getDrivers()  : array<string|int, mixed>
Gets the array of nested drivers.
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.
setDefaultDriver()  : void
Set the default driver.

Properties

Methods

getAllClassNames()

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

public getAllClassNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

The names of all mapped classes known to this driver.

getDrivers()

Gets the array of nested drivers.

public getDrivers() : array<string|int, mixed>
Return values
array<string|int, mixed>

$drivers

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