Propel 2 API
Class

Propel\Generator\Manager\ReverseManager

class ReverseManager extends AbstractManager

Methods

array getSchemas()

Returns the list of schemas.

from AbstractManager
setSchemas(array $schemas)

Sets the schemas list.

from AbstractManager
setWorkingDirectory(string $workingDirectory)

Sets the working directory path.

from AbstractManager
string getWorkingDirectory()

Returns the working directory path.

from AbstractManager
array getDataModels()

Returns the data models that have been processed.

from AbstractManager
array getDataModelDbMap()

Returns the data model to database name map.

from AbstractManager
setValidate(boolean $validate)

Sets whether to perform validation on the datamodel schema.xml file(s).

from AbstractManager
setXsd(string $xsd)

Sets the XSD schema to use for validation of any datamodel schema.xml file(s).

from AbstractManager
setXsl(string $xsl)

Sets the normalization XSLT to use to transform datamodel schema.xml file(s) before validation and parsing.

from AbstractManager
setDbEncoding(string $encoding)

Sets the current target database encoding.

from AbstractManager
setLoggerClosure(Closure $logger)

Sets a logger closure.

from AbstractManager
setGeneratorConfig(GeneratorConfigInterface $generatorConfig)

Sets the GeneratorConfigInterface implementation.

from AbstractManager
setConnection($connection)

string getSchemaName()

Gets the (optional) schema name to use.

setSchemaName(string $schemaName)

Sets the name of a database schema to use (optional).

string getDatabaseName()

Gets the datasource name.

setDatabaseName(string $databaseName)

Sets the datasource name.

setSamePhpName(boolean $samePhpName)

Sets whether to use the column name as phpName without any translation.

setAddVendorInfo(boolean $addVendorInfo)

Sets whether to add vendor info to the schema.

boolean isSamePhpName()

Returns whether to use the column name as phpName without any translation.

reverse()

Details

in AbstractManager at line 100
public array getSchemas()

Returns the list of schemas.

Return Value

array

in AbstractManager at line 110
public setSchemas(array $schemas)

Sets the schemas list.

Parameters

array $schemas

in AbstractManager at line 120
public setWorkingDirectory(string $workingDirectory)

Sets the working directory path.

Parameters

string $workingDirectory

in AbstractManager at line 130
public string getWorkingDirectory()

Returns the working directory path.

Return Value

string

in AbstractManager at line 142
public array getDataModels()

Returns the data models that have been processed.

Return Value

array

in AbstractManager at line 156
public array getDataModelDbMap()

Returns the data model to database name map.

Return Value

array

in AbstractManager at line 170
public setValidate(boolean $validate)

Sets whether to perform validation on the datamodel schema.xml file(s).

Parameters

boolean $validate

in AbstractManager at line 181
public setXsd(string $xsd)

Sets the XSD schema to use for validation of any datamodel schema.xml file(s).

Parameters

string $xsd

in AbstractManager at line 192
public setXsl(string $xsl)

Sets the normalization XSLT to use to transform datamodel schema.xml file(s) before validation and parsing.

Parameters

string $xsl

in AbstractManager at line 202
public setDbEncoding(string $encoding)

Sets the current target database encoding.

Parameters

string $encoding Target database encoding

in AbstractManager at line 212
public setLoggerClosure(Closure $logger)

Sets a logger closure.

Parameters

Closure $logger

in AbstractManager at line 370
public setGeneratorConfig(GeneratorConfigInterface $generatorConfig)

Sets the GeneratorConfigInterface implementation.

Parameters

GeneratorConfigInterface $generatorConfig

at line 64
public setConnection($connection)

Parameters

$connection

at line 74
public string getSchemaName()

Gets the (optional) schema name to use.

Return Value

string

at line 84
public setSchemaName(string $schemaName)

Sets the name of a database schema to use (optional).

Parameters

string $schemaName

at line 94
public string getDatabaseName()

Gets the datasource name.

Return Value

string

at line 106
public setDatabaseName(string $databaseName)

Sets the datasource name.

This will be used as the <database name=""> value in the generated
schema.xml

Parameters

string $databaseName

at line 116
public setSamePhpName(boolean $samePhpName)

Sets whether to use the column name as phpName without any translation.

Parameters

boolean $samePhpName

at line 126
public setAddVendorInfo(boolean $addVendorInfo)

Sets whether to add vendor info to the schema.

Parameters

boolean $addVendorInfo

at line 137
public boolean isSamePhpName()

Returns whether to use the column name as phpName without any translation.

Return Value

boolean

at line 142
public reverse()