Open Casebash opened 11 years ago
In SQL you can write:
"UPDATE table_name SET column1=value1,column2=value2,... WHERE some_column=some_value;"
Does Shanty-Mongo have an equivalent function - or do I have to update the modules one by one?
I guess you're looking for $set property.
$userData = array( '$set'=> array( 'first_name' => 'Name', 'last_name' => 'Last name', ) ); $users->update(array('user_id' =>$USER_ID), $userData);
regards
In SQL you can write:
"UPDATE table_name SET column1=value1,column2=value2,... WHERE some_column=some_value;"
Does Shanty-Mongo have an equivalent function - or do I have to update the modules one by one?