Propel 2 API
Class

Propel\Generator\Reverse\MysqlSchemaParser

class MysqlSchemaParser extends AbstractSchemaParser

Mysql database schema parser.

Methods

__construct(ConnectionInterface $dbh = null)

from AbstractSchemaParser
setConnection(ConnectionInterface $dbh)

Sets the database connection.

from AbstractSchemaParser
ConnectionInterface getConnection()

Gets the database connection.

from AbstractSchemaParser
setMigrationTable(string $migrationTable)

Setter for the migrationTable property

from AbstractSchemaParser
string getMigrationTable()

Getter for the migrationTable property

from AbstractSchemaParser
string[] getWarnings()

Gets array of warning messages.

from AbstractSchemaParser
setGeneratorConfig(GeneratorConfigInterface $config)

Sets the GeneratorConfig to use in the parsing.

from AbstractSchemaParser
GeneratorConfig getGeneratorConfig()

Gets the GeneratorConfig option.

from AbstractSchemaParser
mixed getBuildProperty(string $name)

Gets a specific propel (renamed) property from the build.

from AbstractSchemaParser
setPlatform($platform)

from AbstractSchemaParser
getPlatform()

from AbstractSchemaParser
int parse(Database $database)

Column getColumnFromRow($row, Table $table)

Factory method creating a Column object based on a row from the 'show columns from ' MySQL query result.

Details

in AbstractSchemaParser at line 70
public __construct(ConnectionInterface $dbh = null)

Parameters

ConnectionInterface $dbh Optional database connection

in AbstractSchemaParser at line 82
public setConnection(ConnectionInterface $dbh)

Sets the database connection.

Parameters

ConnectionInterface $dbh

in AbstractSchemaParser at line 91
public ConnectionInterface getConnection()

Gets the database connection.

Return Value

ConnectionInterface

in AbstractSchemaParser at line 101
public setMigrationTable(string $migrationTable)

Setter for the migrationTable property

Parameters

string $migrationTable

in AbstractSchemaParser at line 111
public string getMigrationTable()

Getter for the migrationTable property

Return Value

string

in AbstractSchemaParser at line 131
public string[] getWarnings()

Gets array of warning messages.

Return Value

string[]

in AbstractSchemaParser at line 141
public setGeneratorConfig(GeneratorConfigInterface $config)

Sets the GeneratorConfig to use in the parsing.

Parameters

GeneratorConfigInterface $config

in AbstractSchemaParser at line 151
public GeneratorConfig getGeneratorConfig()

Gets the GeneratorConfig option.

Return Value

GeneratorConfig

in AbstractSchemaParser at line 162
public mixed getBuildProperty(string $name)

Gets a specific propel (renamed) property from the build.

Parameters

string $name

Return Value

mixed

in AbstractSchemaParser at line 227
public setPlatform($platform)

Parameters

$platform

in AbstractSchemaParser at line 232
public getPlatform()

at line 92
public int parse(Database $database)

Parameters

Database $database

Return Value

int number of generated tables

at line 154
public Column getColumnFromRow($row, Table $table)

Factory method creating a Column object based on a row from the 'show columns from ' MySQL query result.

Parameters

$row
Table $table

Return Value

Column