dataobjects newbie question
| From: | Alexander Petri | Date: | Sun, 17 Oct 2004 09:28:33 +0000 |
| Subject: | dataobjects newbie question | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14925@lists.php.net to get a copy of this message | ||
Hi!
how can i select the whole table with dataobject...
i chose this way:
$firma = DB_DataObject::factory('crm_firmen');
$firma->query("SELECT * FROM {$firma->__table} ");
while ($firma->fetch()) {
$rs[]= $firma->toArray();
}
but isnt there a better way to selectAll
isnt there a method to do this?