Свойство | Type | Description | |
---|---|---|---|
$foreign | string | ||
$primary | string | ||
$table | string |
Méthode | Description | |
---|---|---|
__construct ( $primary = 'id', $foreign = '%s_id', $table = '%s' ) | Create static conventional structure. | |
getBelongsToReference ( $table, $key ) | ||
getHasManyReference ( $table, $key ) | ||
getPrimary ( $table ) |
Méthode | Description | |
---|---|---|
getColumnFromTable ( $name ) |
public __construct ( $primary = 'id', $foreign = '%s_id', $table = '%s' ) |