Re: Fw: QuickForm: exportChangedValues / getDefault

From: Date: Tue, 23 Dec 2003 13:52:40 +0000
Subject: Re: Fw: QuickForm: exportChangedValues / getDefault
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9802@lists.php.net to get a copy of this message
Jeroen Houben wrote:
Marco Kundert wrote:
Hello I had the same idea. Its not very handy to update every field on a table, if perhaps only one has changed.
For permance reasons you mean? I doubt you'll notice anything. By the way, DataObject does this. It checks for what has changed and generates an SQL update command accordingly.
yeah :) only if you specify it just for reference .... $person = DB_DataObject::person(); $person->get($id); $original = $person->__clone(); $person->setFrom($_POST); $person->update($original); Regards Alan
jeroen
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.general (#9802) next »