public __construct ( string $primaryKey = 'id', string $foreignKey = '%s_id' ) | ||
$primaryKey | string | |
$foreignKey | string |
function __construct($primaryKey = 'id', $foreignKey = '%s_id')
{
if ($foreignKey === null) {
$foreignKey = $primaryKey;
}
$this->primaryKey = $primaryKey;
$this->foreignKey = $foreignKey;
}