notorm icon indicating copy to clipboard operation
notorm copied to clipboard

cannot update row with composite primary keys

Open softwarevamp opened this issue 12 years ago • 2 comments

$category->categories_description()[0]->update(array( 'categories_name' => $json->name ));

with composite primary keys(categories_id, language_id) cannot be updated

Undefined index: categories_description_id

softwarevamp avatar Feb 25 '14 10:02 softwarevamp

I've documented it at http://www.notorm.com/#faq.

vrana avatar Feb 25 '14 16:02 vrana

Does NotORM support multi-column primary keys? Yes. [...] doesn't support updating rows based on multi-column primary key.

It's confiusing. So, it supports querying but not updating? If so, then the "Yes" may be misleading.

jahd2602 avatar Jul 09 '15 03:07 jahd2602