-
Notifications
You must be signed in to change notification settings - Fork 367
Closed
Milestone
Description
I'm not sure if it should be posted as an issue or as a feature request. I have problem to use raw queries to send update query to the database. For example I need to change many rows at once with simple where condition.
It would be great if one could use it like that:
ORM::for_table('person')->raw_query('UPDATE worker SET income = :income WHERE job = :job',array('job' => $job, 'income' => $income))->save();
But save doesn't send it.
find_one / find_many runs that query, but with problems with null parameters (I had to set null and it set 0) and with PDO error at the end.
I think this feature will help those who need to update on many rows - without refactoring much in the library.
Metadata
Metadata
Assignees
Labels
No labels