Property | Type | Description | |
---|---|---|---|
$foreign | string | ||
$primary | string | ||
$table | string |
Method | Description | |
---|---|---|
__construct ( $primary = 'id', $foreign = '%s_id', $table = '%s' ) | Create static conventional structure. | |
getBelongsToReference ( $table, $key ) | ||
getHasManyReference ( $table, $key ) | ||
getPrimary ( $table ) |
Method | Description | |
---|---|---|
getColumnFromTable ( $name ) |
public __construct ( $primary = 'id', $foreign = '%s_id', $table = '%s' ) |