Update en/reference/yaml-mapping.rst
This commit is contained in:
parent
d23b3bb056
commit
894dfd1a6b
@ -35,6 +35,8 @@ of the constructor, like this:
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
use Doctrine\ORM\Mapping\Driver\YamlDriver;
|
||||||
|
|
||||||
// $config instanceof Doctrine\ORM\Configuration
|
// $config instanceof Doctrine\ORM\Configuration
|
||||||
$driver = new YamlDriver(array('/path/to/files'));
|
$driver = new YamlDriver(array('/path/to/files'));
|
||||||
$config->setMetadataDriverImpl($driver);
|
$config->setMetadataDriverImpl($driver);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user