What is the proper way to construct a cross-table update in Kohana 3 using the DB query builder?
Currently I am just using a DB::expr but I know the query builder is smarter than that.
// update record
$rows_updated = DB::update(DB::expr('user_list_permissions INNER JOIN users ON user_list_permissions.user_id = users.id'))
->set($params)
->where('user_list_permissions.id', '=', $user_list_permission_id)
->where('users.account_id', '=', $this->account_id)
->execute();
And yes of course I tried using the "join" method like when building SELECT queries, but I receive an error:
ErrorException [ 1 ]: Call to undefined method Database_Query_Builder_Update::join()