Re: [Fwd: Issue with DB_DataObject]

From: Date: Fri, 07 Jan 2005 03:30:52 +0000
Subject: Re: [Fwd: Issue with DB_DataObject]
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16764@lists.php.net to get a copy of this message
Ok sorry people I have it working now, MDB2_DataObject that is :) This is a pretty insane idea,what I dont like is the ini settings, I am gonna look at an xml based config setting, but hopefully alightweight parser with caching. What I cant get is that alot of pear packages send config arrays tothe class where this one gets the $options variable as a global var. > -------- Original Message -------- > Subject: Issue with DB_DataObject > From: <daniel@electroteque.org> > Date: Fri, January 7, 2005 11:12 am > To: <pear-general@lists.php.net > > > Hi there, having some problems with the generated DbObject classes. I > made some generatedclasses from the createTable script and the only > method it made was > > function staticGet($k,$v=NULL) { return > DB_DataObject::staticGet('DataObjects_Users',$k,$v); } > now when i try to use it like > > $person = DB_DataObject::factory('users'); > $person->get(2); > $person->realname = 'Fred'; > $person->update(); > > > i get this error > > Fatal error: Call to undefined method DB_DataObject_Error::get() > > Its referencing error for some reason ? > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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