class ConvertDoctrine1SchemaCommand extends Command (View source)

Command to convert a Doctrine 1 schema to a Doctrine 2 mapping file.

Methods

void
setEntityGenerator(EntityGenerator $entityGenerator)

No description

void
setMetadataExporter(ClassMetadataExporter $metadataExporter)

No description

configure()

{@inheritdoc}

execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

convertDoctrine1Schema(array $fromPaths, string $destPath, string $toType, int $numSpaces, string|null $extend, OutputInterface $output)

No description

Details

EntityGenerator getEntityGenerator()

Return Value

EntityGenerator

void setEntityGenerator(EntityGenerator $entityGenerator)

Parameters

EntityGenerator $entityGenerator

Return Value

void

ClassMetadataExporter getMetadataExporter()

Return Value

ClassMetadataExporter

void setMetadataExporter(ClassMetadataExporter $metadataExporter)

Parameters

ClassMetadataExporter $metadataExporter

Return Value

void

protected configure()

{@inheritdoc}

protected execute(InputInterface $input, OutputInterface $output)

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output

convertDoctrine1Schema(array $fromPaths, string $destPath, string $toType, int $numSpaces, string|null $extend, OutputInterface $output)

Parameters

array $fromPaths
string $destPath
string $toType
int $numSpaces
string|null $extend
OutputInterface $output

Exceptions

InvalidArgumentException