Propel 2 API
Class

Propel\Generator\Model\ConstraintNameGenerator

class ConstraintNameGenerator implements NameGenerator

A <code>NameGenerator</code> implementation for table-specific constraints.

Conforms to the maximum column name length for the
type of database in use.

Constants

DEBUG

Conditional compilation flag.

Methods

string generateName(string[] $inputs)

First element of <code>inputs</code> should be of type {@link Database}, second should be a table name, third is the type identifier (spared if trimming is necessary due to database type length constraints), and the fourth is a <code>Integer</code> indicating the number of this constraint.

Details

at line 38
public string generateName(string[] $inputs)

First element of <code>inputs</code> should be of type {@link Database}, second should be a table name, third is the type identifier (spared if trimming is necessary due to database type length constraints), and the fourth is a <code>Integer</code> indicating the number of this constraint.

Parameters

string[] $inputs Inputs used to generate a name.

Return Value

string The generated name.

Exceptions

EngineException

See also

NameGenerator