Hello,

I am trying to achieve a simple task of updating many columns in a row from
a hash. %hash = (field1=>'foo', field2=>'bar' ...)
While I can pass a hash to the "new" method

$product = Product->new (%hash);

I don't see a simple way to update a previously loaded row:

$product = Product->new (id=>$id);
$product->load;

# $product <----- %hash ?

There is no way to bypass column methods to set values directly.
I can use a Manager class, but it doesn't seem right here.  What am I
missing?




--
Iļja Ketris | iPro SIA  | +371 800 IPRO
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to