Doctrine


Doctrine\ORM\Mapping\Driver\DriverChain
/Doctrine/ORM/Mapping/Driver/DriverChain.php at line 41

Class DriverChain

DriverChain
All Implemented Interfaces:
Driver

public class DriverChain

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

License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Since:
2.0
Version:
$Revision$
Author Benjamin:
Eberlei
Author Guilherme:
Blanco
Author:
Jonathan H. Wage
Roman Borschel

Method Summary
void

addDriver(Driver nestedDriver, string namespace)

Add a nested driver.

array

getAllClassNames()

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

array

getDrivers()

Get the array of nested drivers.

boolean

isTransient(string className)

Whether the class with the specified name should have its metadata loaded.

void

loadMetadataForClass(string className, ClassMetadataInfo metadata)

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

Method Detail

/Doctrine/ORM/Mapping/Driver/DriverChain.php at line 54

addDriver

public void addDriver(Driver nestedDriver, string namespace)

Add a nested driver.


/Doctrine/ORM/Mapping/Driver/DriverChain.php at line 92

getAllClassNames

public array getAllClassNames()

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

Returns:
The names of all mapped classes known to this driver.

/Doctrine/ORM/Mapping/Driver/DriverChain.php at line 64

getDrivers

public array getDrivers()

Get the array of nested drivers.

Returns:
$drivers

/Doctrine/ORM/Mapping/Driver/DriverChain.php at line 109

isTransient

public boolean isTransient(string className)

Whether the class with the specified name should have its metadata loaded. This is only the case if it is either mapped as an Entity or a MappedSuperclass.


/Doctrine/ORM/Mapping/Driver/DriverChain.php at line 75

loadMetadataForClass

public void loadMetadataForClass(string className, ClassMetadataInfo metadata)

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


Doctrine