Skip to content

Commit

Permalink
Fixes missing namespaces on class call
Browse files Browse the repository at this point in the history
  • Loading branch information
gabidavila committed Jan 2, 2017
1 parent 443902f commit fc8ede8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/reference/tools.rst
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 fc8ede8

Please sign in to comment.