DB_DataObject - get()
| From: | Barry Steele | Date: | Wed, 13 Aug 2003 01:33:44 +0000 |
| Subject: | DB_DataObject - get() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-7170@lists.php.net to get a copy of this message | ||
Hi,
I've just run into a strange inconsistenct with DB_DataObject
I have the following code:-
$user = new DataObject_Users;
echo "Looking for [".$_COOKIE['USERNAME']."]<br>";
$user = new DataObject_Users;
$user->debugLevel(5);
$user->get('username',$_COOKIE['USERNAME']);
Which works wonderfully well on my development machine but on the target
server it produces a query statement without a where clause.
I've just upgraded DB_DataObject on both machines to 1.1 and it still
occurrs.
For the moment I'm going to get around it by using find and fetch, but
I'm really interested to understand why I get different behavours on the
two machines.
Any thoughts?
Barry