Wolfgang Forstmeier wrote:
>
> Hey iosonogio,
>
> maybe you should read that manual:
>
> http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.select.fetchall
>
> especially the example 10.10. "Using setFetchMode()" would be
> interesting for you.
>
>
Hi,
thanks for that, I missed that before! :)
By the way, I see that using FETCH_OBJ it would return a stdClass object.
This would not be the same like an Article class object.
That is, I would be able to access fields from stdClass using "->" but it
would not have the "behaviour" of Article, not being an Article!
So pretty similar to an array actually...
--
View this message in context:
http://www.nabble.com/Object-Oriented-and-dealing-with-array-coming-from-Zend_Db-and-Zend_Form-tp18142182p18149763.html
Sent from the Zend Framework mailing list archive at Nabble.com.