Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot update row with composite primary keys #78

Open
softwarevamp opened this issue Feb 25, 2014 · 2 comments
Open

cannot update row with composite primary keys #78

softwarevamp opened this issue Feb 25, 2014 · 2 comments

Comments

@softwarevamp
Copy link

$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

@vrana
Copy link
Owner

vrana commented Feb 25, 2014

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

@jahd2602
Copy link

jahd2602 commented Jul 9, 2015

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.

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

No branches or pull requests

3 participants