Method | Description | |
---|---|---|
__construct ( string $primaryKey = 'id', string $foreignKey = '%s_id' ) | FluentStructure constructor. | |
getForeignKey ( string $table ) : string | ||
getPrimaryKey ( string $table ) : string |
Method | Description | |
---|---|---|
key ( string | callback $key, string $table ) : string |
public __construct ( string $primaryKey = 'id', string $foreignKey = '%s_id' ) | ||
$primaryKey | string | |
$foreignKey | string |
public getForeignKey ( string $table ) : string | ||
$table | string | |
return | string |
public getPrimaryKey ( string $table ) : string | ||
$table | string | |
return | string |