DB_DataObject
| From: | Noel da Costa | Date: | Wed, 09 Aug 2006 11:12:47 +0000 |
| Subject: | DB_DataObject | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24861@lists.php.net to get a copy of this message | ||
Hi,
A query regarding the use of custom ->selectAdd statments with DB_DataObject:
If I use this:
$DO->selectAdd();
$DO->selectAdd("column1");
I get a dataobject containing a ->column1 property with valid data.
However, if I use this:
$DO->selectAdd();
$DO->selectAdd("column1 AS 'Name'");
The data object that returns contains a ->column1 property which is empty and a ->Name property which is also empty.
Why? How can I fix? Any ideas?
Thanks,
Noel
Noel da Costa
Lead Developer
noel.dacosta@magharl.co.uk