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
|
||||
|
||||
<?php
|
||||
use Doctrine\ORM\Mapping\Driver\YamlDriver;
|
||||
|
||||
// $config instanceof Doctrine\ORM\Configuration
|
||||
$driver = new YamlDriver(array('/path/to/files'));
|
||||
$config->setMetadataDriverImpl($driver);
|
||||
|
Loading…
Reference in New Issue
Block a user