Re: Fw: QuickForm: exportChangedValues / getDefault
| From: | Alan Knowles | 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: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 AlanHello 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.
jeroen-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com