1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Update en/reference/yaml-mapping.rst

This commit is contained in:
Benjamin Eberlei 2011-12-22 23:06:59 +01:00
parent d23b3bb056
commit 894dfd1a6b

View File

@ -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);