Skip to content

Commit

Permalink
Merge pull request #6207 from gabidavila/master
Browse files Browse the repository at this point in the history
Documentation: Fixes missing namespaces on class call
  • Loading branch information
Ocramius committed Jan 2, 2017
2 parents 443902f + fc8ede8 commit 06691e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/reference/tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ First you need to retrieve the metadata instances with the
)
);
$cmf = new DisconnectedClassMetadataFactory();
$cmf = new \Doctrine\ORM\Tools\DisconnectedClassMetadataFactory();
$cmf->setEntityManager($em);
$metadata = $cmf->getAllMetadata();
Expand All @@ -395,7 +395,7 @@ to yml:
.. code-block:: php
<?php
$cme = new ClassMetadataExporter();
$cme = new \Doctrine\ORM\Tools\Export\ClassMetadataExporter();
$exporter = $cme->getExporter('yml', '/path/to/export/yml');
$exporter->setMetadata($metadata);
$exporter->export();
Expand Down

0 comments on commit 06691e0

Please sign in to comment.