Add a nested driver.
Parameters
MappingDriver $nestedDriver:
string $namespace:
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php, line 76
Class
- MappingDriverChain
- The DriverChain allows you to add multiple other mapping drivers for
certain namespaces
Namespace
Doctrine\Common\Persistence\Mapping\Driver
Code
public function addDriver(MappingDriver $nestedDriver, $namespace) {
$this->drivers[$namespace] = $nestedDriver;
}