Re: DataObject::toArray
| From: | Brad Hubbard | Date: | Wed, 28 May 2003 00:53:37 +0000 |
| Subject: | Re: DataObject::toArray | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5640@lists.php.net to get a copy of this message | ||
On Wed, 2003-05-28 at 00:37, LIMBOURG Arnaud wrote:
> Hello,
>
> While using dataobjects i noticed the following behaviour.
>
> $obj = new DBO_Person;
> $obj->selectAdd('count(*) as nb_people');
> $obj->groupBy('id');
>
> echo $obj->toArray()
>
> nb_people won't be shown. Is that an expected behaviour ?
Try;
print_r( $obj->toArray() );
Brad