2010年8月7日星期六

[fw-db] New objects to fetchRow and fetchAll objects

Hello my friends,

I need a little help here, and sorry by my bad english.

I get the following code:
$db = new Database(); -> Working
$data = $db->fetchRow($db->select()->where('id = ?',1));

It returns ok, but I need to attach a few images to it, so I call from the
database a table called file manager and do this:
$file = new FileManager();
$data->files = $file->fetchAll($file->select()->where('id = ?',$data->id));

But it did not work, how can I add new object values to the fetchRow or the
fetchAll, if I use array it works, but how can I do it with objects???

Thanks and best regad's.
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/New-objects-to-fetchRow-and-fetchAll-objects-tp2317380p2317380.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: