DataObjects - Reset?
| From: | pablo | Date: | Fri, 13 Dec 2002 15:07:46 +0000 |
| Subject: | DataObjects - Reset? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-2976@lists.php.net to get a copy of this message | ||
Hi all, thanks in advance for any feedback.
I am try to run a series of validation on data before running an insert or delete or whatever.
The thing is that if I run a fetch() on the data, and then subsequently try an insert(), the data that was set during the fetch() is still assigned to the member vars.
Is there some way to simply 'reset' an instance of the DO class so that it assumes all member var information is empty?
This will help when doing multiple validation checks followed by an update/insert/delete from the database.
Thanks!
Pablo