Class ConventionalReflection
Reflection metadata class for a database.
- Nette\Object
- Nette\Database\Reflection\ConventionalReflection implements Nette\Database\IReflection
Namespace: Nette\Database\Reflection
Author: Jakub Vrana
Author: Jan Skrasek
Located at Database/Reflection/ConventionalReflection.php
Author: Jakub Vrana
Author: Jan Skrasek
Located at Database/Reflection/ConventionalReflection.php
public
|
#
__construct( string $primary = 'id', string $foreign = '%s_id', string $table = '%s' )
Create conventional structure. |
public
string|array
|
|
public
array
|
#
getHasManyReference( string $table, string $key )
Gets referenced table & referenced column. Example: |
public
array
|
#
getBelongsToReference( string $table, string $key )
Gets referenced table & referencing column. Example |
protected
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
FIELD_BINARY,
FIELD_BOOL,
FIELD_DATE,
FIELD_DATETIME,
FIELD_FLOAT,
FIELD_INTEGER,
FIELD_TEXT,
FIELD_TIME,
FIELD_TIME_INTERVAL,
FIELD_UNIX_TIMESTAMP
|
protected
string
|
$primary |
|
|
protected
string
|
$foreign |
|
|
protected
string
|
$table |
|
$reflection
|