class DatabaseDriver implements MappingDriver (View source)

The DatabaseDriver reverse engineers the mapping metadata from a database.

Methods

__construct(AbstractSchemaManager $schemaManager)

No description

void
setNamespace(string $namespace)

Set the namespace for the generated entities.

isTransient($className)

{@inheritDoc}

getAllClassNames()

{@inheritDoc}

void
setClassNameForTable(string $tableName, string $className)

Sets class name for a table.

void
setFieldNameForColumn(string $tableName, string $columnName, string $fieldName)

Sets field name for a column on a specific table.

void
setTables(array $entityTables, array $manyToManyTables)

Sets tables manually instead of relying on the reverse engineering capabilities of SchemaManager.

loadMetadataForClass($className, ClassMetadata $metadata)

{@inheritDoc}

Details

__construct(AbstractSchemaManager $schemaManager)

Parameters

AbstractSchemaManager $schemaManager

void setNamespace(string $namespace)

Set the namespace for the generated entities.

Parameters

string $namespace

Return Value

void

isTransient($className)

{@inheritDoc}

Parameters

$className

getAllClassNames()

{@inheritDoc}

void setClassNameForTable(string $tableName, string $className)

Sets class name for a table.

Parameters

string $tableName
string $className

Return Value

void

void setFieldNameForColumn(string $tableName, string $columnName, string $fieldName)

Sets field name for a column on a specific table.

Parameters

string $tableName
string $columnName
string $fieldName

Return Value

void

void setTables(array $entityTables, array $manyToManyTables)

Sets tables manually instead of relying on the reverse engineering capabilities of SchemaManager.

Parameters

array $entityTables
array $manyToManyTables

Return Value

void

loadMetadataForClass($className, ClassMetadata $metadata)

{@inheritDoc}

Parameters

$className
ClassMetadata $metadata