Skip to content

Commit

Permalink
Remove reference to deprecated DriverChain from docs (#10179)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Oct 26, 2022
1 parent 75e42ab commit 8f605c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/en/reference/advanced-configuration.rst
Expand Up @@ -404,15 +404,15 @@ Multiple Metadata Sources

When using different components using Doctrine ORM you may end up
with them using two different metadata drivers, for example XML and
YAML. You can use the DriverChain Metadata implementations to
YAML. You can use the MappingDriverChain Metadata implementations to
aggregate these drivers based on namespaces:

.. code-block:: php
<?php
use Doctrine\ORM\Mapping\Driver\DriverChain;
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
$chain = new DriverChain();
$chain = new MappingDriverChain();
$chain->addDriver($xmlDriver, 'Doctrine\Tests\Models\Company');
$chain->addDriver($yamlDriver, 'Doctrine\Tests\ORM\Mapping');
Expand Down

0 comments on commit 8f605c6

Please sign in to comment.