Propel API
Class

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

generateName($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 contraint.

Details

at line 38
public generateName($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 contraint.

Parameters

$inputs

Exceptions

EngineException

See also

NameGenerator