Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain
The DriverChain allows you to add multiple other mapping drivers for certain namespaces
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class MappingDriverChain
implements
MappingDriver
{
- // members
- private MappingDriver $defaultDriver;
- private array $drivers;
- // methods
- public MappingDriver|null getDefaultDriver()
- public void setDefaultDriver()
- public void addDriver()
- public array getDrivers()
- public void loadMetadataForClass()
- public array getAllClassNames()
- public boolean isTransient()
Hierarchy
Extended by
Implements
Members
private
- $defaultDriver
—
Doctrine\Common\Persistence\Mapping\Driver\MappingDriver
The default driver - $drivers — array
Methods
public
- addDriver() — Add a nested driver.
- getAllClassNames() — Gets the names of all mapped classes known to this driver.
- getDefaultDriver() — Get the default driver.
- getDrivers() — Get the array of nested drivers.
- isTransient() — Whether the class with the specified name should have its metadata loaded.
- loadMetadataForClass() — Loads the metadata for the specified class into the provided container.
- setDefaultDriver() — Set the default driver.