Propel 2 API
Interface

Propel\Generator\Reverse\SchemaParserInterface

interface SchemaParserInterface

Interface for reverse engineering schema parsers.

Methods

ConnectionInterface getConnection()

Gets the database connection.

setConnection(ConnectionInterface $dbh)

Sets the database connection.

setGeneratorConfig(GeneratorConfigInterface $config)

Sets the GeneratorConfig to use in the parsing.

mixed getBuildProperty(string $name)

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

string[] getWarnings()

Gets array of warning messages.

int parse(Database $database)

Parse the schema and populate passed-in Database model object.

Details

at line 28
public ConnectionInterface getConnection()

Gets the database connection.

Return Value

ConnectionInterface

at line 35
public setConnection(ConnectionInterface $dbh)

Sets the database connection.

Parameters

ConnectionInterface $dbh

at line 42
public setGeneratorConfig(GeneratorConfigInterface $config)

Sets the GeneratorConfig to use in the parsing.

Parameters

GeneratorConfigInterface $config

at line 50
public mixed getBuildProperty(string $name)

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

Parameters

string $name

Return Value

mixed

at line 56
public string[] getWarnings()

Gets array of warning messages.

Return Value

string[]

at line 64
public int parse(Database $database)

Parse the schema and populate passed-in Database model object.

Parameters

Database $database

Return Value

int number of generated tables