namespace Nette\Database\Reflection
Class DatabaseReflection
Reflection metadata class for a database. TEMPORARY SOLUTION
- Nette\Object
-
Nette\Database\Reflection\DatabaseReflection
public
|
#
__construct(
string
$primary = 'id',
string
$foreign = '%s_id',
string
$table = '%s'
)
Create conventional structure. Create conventional structure. Parameters$primary string %s stands for table name$foreign string %1$s stands for key used after ->, %2$s for table name$table string %1$s stands for key used after ->, %2$s for table name |
public
|
#
getPrimary(
$table
)
|
public
|
#
getReferencingColumn(
$name,
$table
)
|
public
|
#
getReferencedColumn(
$name,
$table
)
|
public
|
#
getReferencedTable(
$name,
$table
)
|