Hi,

I can't find how to set 'where' clause in an update. I only want to update rows 
depending on a condition. Is that possible? 
I haven't this option in ResultSet documentation.

I try like next, but it doesn't work. It updates all table rows.

$c->model('DB::Test')->update({'lang' => $lang->first->id},{where => {'id' => 
$c->user->get('id')}});

 

Thanks in advanced,

David



      
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to