AbstractExporter
public abstract class AbstractExporter
www.doctrine-project.org
Field Summary | |
---|---|
protected mixed | |
protected mixed | |
protected mixed |
Constructor Summary | |
---|---|
AbstractExporter(mixed dir) |
Method Summary | |
---|---|
void | export() Export each ClassMetadata instance to a single Doctrine Mapping file named after the entity |
abstract mixed | exportClassMetadata(ClassMetadataInfo metadata) Converts a single ClassMetadata instance to the exported format and returns it |
string | Get the extension used to generated the path to a class |
void | setExtension(string extension) Set the directory to output the mapping files to[php] $exporter = new YamlExporter($metadatas, __DIR__ . |
void | setMetadatas(array metadatas) Set the array of ClassMetadataInfo instances to export |
void | setOutputDir(string dir) Set the directory to output the mapping files to[php] $exporter = new YamlExporter($metadatas); $exporter->setOutputDir(__DIR__ . |
protected mixed $_extension
protected mixed $_metadatas = array()
protected mixed $_outputDir
public AbstractExporter(mixed dir)
public void export()
Export each ClassMetadata instance to a single Doctrine Mapping file named after the entity
public abstract mixed exportClassMetadata(ClassMetadataInfo metadata)
Converts a single ClassMetadata instance to the exported format and returns it
public string getExtension()
Get the extension used to generated the path to a class
public void setExtension(string extension)
Set the directory to output the mapping files to
[php] $exporter = new YamlExporter($metadatas, __DIR__ . '/yaml'); $exporter->setExtension('.yml'); $exporter->export();
public void setMetadatas(array metadatas)
Set the array of ClassMetadataInfo instances to export
public void setOutputDir(string dir)
Set the directory to output the mapping files to
[php] $exporter = new YamlExporter($metadatas); $exporter->setOutputDir(__DIR__ . '/yaml'); $exporter->export();
Abstract base class which is to be used for the Exporter drivers which can be found in Doctrine\ORM\Tools\Export\Driver