ClassMetadataExporter
in package
Class used for converting your mapping information between the supported formats: yaml, xml, and php/annotation.
Tags
Table of Contents
Properties
- $_exporterDrivers : array<string, string>
Methods
- __construct() : mixed
- getExporter() : AbstractExporter
- Gets an exporter driver instance.
- registerExportDriver() : void
- Registers a new exporter driver class under a specified name.
Properties
$_exporterDrivers
private
static array<string, string>
$_exporterDrivers
= ['xml' => \Doctrine\ORM\Tools\Export\Driver\XmlExporter::class, 'yaml' => \Doctrine\ORM\Tools\Export\Driver\YamlExporter::class, 'yml' => \Doctrine\ORM\Tools\Export\Driver\YamlExporter::class, 'php' => \Doctrine\ORM\Tools\Export\Driver\PhpExporter::class, 'annotation' => \Doctrine\ORM\Tools\Export\Driver\AnnotationExporter::class]
Methods
__construct()
public
__construct() : mixed
getExporter()
Gets an exporter driver instance.
public
getExporter(string $type[, string|null $dest = null ]) : AbstractExporter
Parameters
- $type : string
-
The type to get (yml, xml, etc.).
- $dest : string|null = null
-
The directory where the exporter will export to.
Tags
Return values
AbstractExporterregisterExportDriver()
Registers a new exporter driver class under a specified name.
public
static registerExportDriver(string $name, string $class) : void
Parameters
- $name : string
- $class : string