|
An Introduction to Class::DBI - Bonus Material
|
44
|
|
|
Class::DBI Gotchas
Manual updating with update()
Even though the create() method writes to the Database instantly, the other accessor methods don't.
my ($film) = Film->search(title => 'A Fistful of Dollars');
$film->title('For a Few Dollars More');
If you exit now, the new title will never enter the database.
You have to update the object:
$film->update;
|
|