PHP Class Nette\Database\Conventions\StaticConventions

Inheritance: implements Nette\Database\IConventions, use trait Nette\SmartObject
Mostra file Open project: nette/database Class Usage Examples

Protected Properties

Property Type Description
$foreign string
$primary string
$table string

Public Methods

Method Description
__construct ( $primary = 'id', $foreign = '%s_id', $table = '%s' ) Create static conventional structure.
getBelongsToReference ( $table, $key )
getHasManyReference ( $table, $key )
getPrimary ( $table )

Protected Methods

Method Description
getColumnFromTable ( $name )

Method Details

__construct() public method

Create static conventional structure.
public __construct ( $primary = 'id', $foreign = '%s_id', $table = '%s' )

getBelongsToReference() public method

public getBelongsToReference ( $table, $key )

getColumnFromTable() protected method

protected getColumnFromTable ( $name )

getHasManyReference() public method

public getHasManyReference ( $table, $key )

getPrimary() public method

public getPrimary ( $table )

Property Details

$foreign protected_oe property

protected string $foreign
return string

$primary protected_oe property

protected string $primary
return string

$table protected_oe property

protected string $table
return string