Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

multi column primary keys not supported #5

Open
stitch opened this issue Jul 7, 2013 · 1 comment
Open

multi column primary keys not supported #5

stitch opened this issue Jul 7, 2013 · 1 comment

Comments

@stitch
Copy link

stitch commented Jul 7, 2013

Hi,

The API does not support multi column primary keys. Is there a way to work with this still without changing the database?

Example:
$arrest->set_table_index('part', 'system','part number');
or
$arrest->set_table_index('lulz_stash_console_part', array('system','part number'));

Regards,
Elger

@ludesign
Copy link

The code is written in a way assuming there will be one primary key per table and it will be an int (possibly autoincrement), as can be seen in the code.

$id = intval($this->segment(1));

Fix is possible. If you just want a quick fix I might implement it; but as I think this project is lacking a lot of features I am looking for, a new project is the way to go.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants