public function MappingDriverChain::addDriver in Plug 7
Adds a nested driver.
Parameters
MappingDriver $nestedDriver:
string $namespace:
Return value
void
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ Driver/ MappingDriverChain.php, line 79
Class
- MappingDriverChain
- The DriverChain allows you to add multiple other mapping drivers for certain namespaces.
Namespace
Doctrine\Common\Persistence\Mapping\DriverCode
public function addDriver(MappingDriver $nestedDriver, $namespace) {
$this->drivers[$namespace] = $nestedDriver;
}