Class ConventionalReflection
Reflection metadata class for a database.
- Object
- ConventionalReflection implements IReflection
Package: 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
|
|
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 |
public
|
|
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
|
protected
string
|
$primary |
|
|
protected
string
|
$foreign |
|
|
protected
string
|
$table |
|
public write-only
|
$connection |
$reflection
|