Skip to content

Commit

Permalink
Add use statement (#9769)
Browse files Browse the repository at this point in the history
We are supposed to use the driver from doctrine/persistence, and not the
deprecated one from this package.
  • Loading branch information
greg0ire authored May 19, 2022
1 parent 45e196e commit 8f77012
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/en/reference/php-mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ For this you just need to use the ``StaticPHPDriver``:
.. code-block:: php
<?php
use Doctrine\Persistence\Mapping\Driver\StaticPHPDriver;
$driver = new StaticPHPDriver('/path/to/entities');
$em->getConfiguration()->setMetadataDriverImpl($driver);
Expand Down

0 comments on commit 8f77012

Please sign in to comment.