1
0
mirror of synced 2025-01-19 06:51:40 +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 .. 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);