Documentation

ConvertDoctrine1Schema
in package

Class to help with converting Doctrine 1 schema files to Doctrine 2 mapping files

Tags
deprecated

This class is being removed from the ORM and won't have any replacement

link
www.doctrine-project.org

Table of Contents

Properties

$from  : array<string|int, mixed>
$legacyTypeMap  : array<string, string>

Methods

__construct()  : mixed
Constructor passes the directory or array of directories to convert the Doctrine 1 schema files from.
getMetadata()  : array<string|int, ClassMetadataInfo>
Gets an array of ClassMetadataInfo instances from the passed Doctrine 1 schema.
convertColumn()  : array<string|int, mixed>
convertColumns()  : void
convertIndexes()  : void
convertRelations()  : void
convertTableName()  : void
convertToClassMetadataInfo()  : ClassMetadataInfo

Properties

$legacyTypeMap

private array<string, string> $legacyTypeMap = [ // TODO: This list may need to be updated 'clob' => 'text', 'timestamp' => 'datetime', 'enum' => 'string', ]

Methods

__construct()

Constructor passes the directory or array of directories to convert the Doctrine 1 schema files from.

public __construct(array<string|int, string>|string $from) : mixed
Parameters
$from : array<string|int, string>|string
Tags
psalm-param

list|string $from

getMetadata()

Gets an array of ClassMetadataInfo instances from the passed Doctrine 1 schema.

public getMetadata() : array<string|int, ClassMetadataInfo>
Tags
psalm-return

list<ClassMetadataInfo>

Return values
array<string|int, ClassMetadataInfo>

An array of ClassMetadataInfo instances

convertColumn()

private convertColumn(string $className, string $name, string|array<string|int, mixed> $column, ClassMetadataInfo $metadata) : array<string|int, mixed>
Parameters
$className : string
$name : string
$column : string|array<string|int, mixed>
$metadata : ClassMetadataInfo
Tags
throws
ToolsException
Return values
array<string|int, mixed>

convertToClassMetadataInfo()

private convertToClassMetadataInfo(string $className, array<string|int, mixed> $mappingInformation) : ClassMetadataInfo
Parameters
$className : string
$mappingInformation : array<string|int, mixed>
Tags
psalm-param

class-string $className

Return values
ClassMetadataInfo

        
On this page

Search results