From 0698a8c4553c982d153540d8ff20bb97f30b1a04 Mon Sep 17 00:00:00 2001 From: "Jonathan H. Wage" Date: Tue, 18 May 2010 11:51:49 -0400 Subject: [PATCH] Fixing php code --- manual/en/tools.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manual/en/tools.txt b/manual/en/tools.txt index 991b014c0..22321bbe4 100644 --- a/manual/en/tools.txt +++ b/manual/en/tools.txt @@ -192,6 +192,7 @@ exporter: Now you can export some `ClassMetadata` instances: + [php] $classes = array( $em->getClassMetadata('Entities\User'), $em->getClassMetadata('Entities\Profile') @@ -224,6 +225,7 @@ First you need to retrieve the metadata instances with the `DatabaseDriver`: Now you can get an exporter instance and export the loaded metadata to yml: + [php] $exporter = $cme->getExporter('yml', '/path/to/export/yml'); $exporter->setMetadata($metadatas); $exporter->export();