Class StaticConventions
Conventions based on static definition.
- Nette\Object
- Nette\Database\Conventions\StaticConventions implements Nette\Database\IConventions
Direct known subclasses
Nette\Database\Reflection\ConventionalReflection
public
|
#
__construct( string $primary = 'id', string $foreign = '%s_id', string $table = '%s' )
Create static conventional structure. |
public
string|array|null
|
|
public
array
|
#
getHasManyReference( string $table, string $key )
Returns referenced table & referenced column. Example: |
public
array
|
#
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
|
$reflection
|