Re: DB_DataObject fetch() and delete() failure
| From: | Alan Knowles | Date: | Sat, 17 May 2003 00:06:34 +0000 |
| Subject: | Re: DB_DataObject fetch() and delete() failure | ||
| References: | 1 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-5424@lists.php.net to get a copy of this message | ||
Michael McCarthy wrote:
Hi there, <<SNIP>>
The error I get is: "Fatal error: Call to a member function on a non-object
in DB/DataObject.php on line 382".
Is it no longer possible to delete within a fetch loop? Ie.
while ($sc->fetch()) {
$sc->delete();
}
that should work. can you file it as a bug report.
can you install the current cvs version and let me know the
the line number that is failing in there.
BTW what does DB_DataObject::debugLevel(1) tell you?
Regards
Alan
What am I missing here? Many thanks in advance, Mike