$user=ORM::forTable('users')->where('usermail',$email)->findOne(); $user->set('email',$email); $user->set('password',$password); $user->save(); 

There is a code. You need to update the sqlite entry through idiorm. When I try to do this, I get the following error: Primary key ID is missing from row or is null idiorm

I read somewhere that I need to configure something, but I did not understand it, so I am writing here asking for help!

  • Are you looking for a user by email and then insert the same email in another field? - br3t

1 answer 1

It is assumed that the primary key field is called id. If you have another field for the primary key, you must specify it.

 ORM::configure('id_column', 'primary_key'); 

http://idiorm.readthedocs.io/en/latest/configuration.html#id-column