[Fwd: Issue with DB_DataObject]
| From: | daniel at electroteque dot org | Date: | Fri, 07 Jan 2005 00:15:47 +0000 |
| Subject: | [Fwd: Issue with DB_DataObject] | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-16755@lists.php.net to get a copy of this message | ||
-------- 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 ?