2009年3月9日星期一

[fw-db] Zend_Db_Table with setRowClass vs Zend_Db with named parameters

Hi,

I'm starting to use Zend framework to have a nice combination with my flex applications. So I use Zend_AMF.
So I wanted to do some nice things using Zend_Db_Table, for example I am using the setRowClass, so I can pass these class through AMF.

One of the other things I was used to work with in php (pdo) is binding parameters.
It is possible to use this, using Zend_Db, but not with Zend_Db_Table (as far as I know).

But in Zend_Db it is not possible to set the class name, using FETCH_CLASS.
(or some other kind of setRowClass workaround).

So my question is, is there some way to use binding parameters in zend_db_table or to set the row class in Zend_db ?
Is anybody working on this already?

I find it very confusing zend_db_table's fetchAll uses very different parameters then zend_db's fetchAll.

Mark


没有评论: