I'm trying to save two specific columns for login attempts.
I've tried to use both save and saveAttributes but get the same error message: Column name must be either a string or an array.
this is how i've tried to call them:
$user->saveAttributes(array('login_attempts'=>$user->login_attempts + 1, 'last_login_attempt'=>time()));
and
$user->saveAttributes(array('login_attempts', 'last_login_attempt'));
even tried it as one string in the array got a different error that time.
tried save as well setting validation to false but get the same results.
looked through the cookbook and definitive guide but couldn't find an example on how to save specific attributes.