Doctrine\ORM\Tools\Export\Driver\AbstractExporter
Abstract base class which is to be used for the Exporter drivers which can be found in \Doctrine\ORM\Tools\Export\Driver
- Author: Jonathan Wage <jonwage@gmail.com>
Synopsis
class AbstractExporter
{
- // members
- protected array $_metadata;
- protected $_outputDir;
- protected $_extension;
- protected $_overwriteExistingFiles;
- // methods
- public void __construct()
- public void setOverwriteExistingFiles()
- public abstract mixed exportClassMetadata()
- public void setMetadata()
- public string getExtension()
- public void setOutputDir()
- public void export()
- protected string _generateOutputPath()
- public void setExtension()
- protected void _getInheritanceTypeString()
- protected void _getChangeTrackingPolicyString()
- protected void _getIdGeneratorTypeString()
Hierarchy
Extended by
Members
protected
- $_extension
- $_metadata
- $_outputDir
- $_overwriteExistingFiles
Methods
protected
- _generateOutputPath() — Generate the path to write the class for the given ClassMetadataInfo instance
- _getChangeTrackingPolicyString()
- _getIdGeneratorTypeString()
- _getInheritanceTypeString()
public
- __construct()
- export() — Export each ClassMetadata instance to a single Doctrine Mapping file named after the entity
- exportClassMetadata() — Converts a single ClassMetadata instance to the exported format and returns it
- getExtension() — Get the extension used to generated the path to a class
- setExtension() — Set the directory to output the mapping files to
- setMetadata() — Set the array of ClassMetadataInfo instances to export
- setOutputDir() — Set the directory to output the mapping files to
- setOverwriteExistingFiles()