Class StaticConventions
Conventions based on static definition.
- Nette\Database\Conventions\StaticConventions implements Nette\Database\IConventions uses Nette\SmartObject
public
|
#
__construct( string $primary = 'id', string $foreign = '%s_id', string $table = '%s' )
Create static conventional structure. |
public
string|array|null
|
|
public
array|null
|
#
getHasManyReference( string $table, string $key )
Returns referenced table & referenced column. Example: |
public
array|null
|
#
getBelongsToReference( string $table, string $key )
Returns referenced table & referencing column. Example |
protected
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
protected
string
|
$primary
|
|
protected
string
|
$foreign
|
|
protected
string
|
$table
|