1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Fixing php code

This commit is contained in:
Jonathan H. Wage 2010-05-18 11:51:49 -04:00
parent 1193c530c9
commit 0698a8c455

View File

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