DB - how to do toArray after join

From: Date: Fri, 14 Nov 2003 09:42:29 +0000
Subject: DB - how to do toArray after join
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8908@lists.php.net to get a copy of this message
Hi! Am I making a mistake or why do I not get all the fields when I do: $table1=new DataObject_table1(); $table2=new DataObject_table2(); $table3=new DataObject_table3(); $table1->joinAdd($table2); $table1->joinAdd($table3); $table1->find(); while ($table1->fetch()){ echo "-------------Data---------------<BR>"; $data=$table1->toArray(); echo "<pre>"; var_dump($data); echo "</pre>"; } I only get the parameters of table1 BUT if I output the object $table1 I see that the data is actually in there. So - how can I get an array with all the collected data? Or do I need to get everything myself? Like this: $data['field1'] = $table1->field1; $data['field2'] = $table2->field2; ... echo "<pre>"; var_dump($data); echo "</pre>"; Any comments? Daniel

« previous php.pear.general (#8908) next »