vrana/notorm

cannot update row with composite primary keys

Opened this issue · 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

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

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.