[Dbix-class] What am I doing wrong (not seeing updates)

Nigel Metheringham Nigel.Metheringham at dev.intechnology.co.uk
Mon Jul 10 14:29:13 CEST 2006


On Mon, 2006-07-10 at 14:20 +0200, Matija Grabnar wrote:
> my $sch = $schema->resultset('My::Schema::Orders');
> my $o = 
> $sch->search({sessionid=>'7b90a03af16a72787e17bd183d9ccf33'})->single;

fetch the record...

> $o->created('2006-07-10 12:10:11');

change one column in the in-memory copy of the row

You now need to do
  $o->update;

to push any changes to the db...

	Nigel.

-- 
[ Nigel Metheringham           Nigel.Metheringham at InTechnology.co.uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]




More information about the Dbix-class mailing list