Propel API
Interface

SchemaParser

interface SchemaParser

Interface for reverse engineering schema parsers.

Methods

PDO getConnection()

Gets the database connection.

setConnection(PDO $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.

array getWarnings()

Gets array of warning messages.

int parse(Database $database, Task $task = null)

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

Details

at line 25
public PDO getConnection()

Gets the database connection.

Return Value

PDO

at line 32
public setConnection(PDO $dbh)

Sets the database connection.

Parameters

PDO $dbh

at line 39
public setGeneratorConfig(GeneratorConfigInterface $config)

Sets the GeneratorConfig to use in the parsing.

Parameters

GeneratorConfigInterface $config

at line 47
public mixed getBuildProperty(string $name)

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

Parameters

string $name

Return Value

mixed

at line 53
public array getWarnings()

Gets array of warning messages.

Return Value

array string[]

at line 62
public int parse(Database $database, Task $task = null)

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

Parameters

Database $database
Task $task

Return Value

int number of generated tables