2008年10月17日星期五

[fw-mvc] Zend_Db_Table and Mysql Views

Hello,

I'm trying to use Zend_Db_Table to query some Mysql 5 views.

When I do the query I obtain this kind of exception :

exception 'Zend_Db_Table_Exception' with message 'A table must have a
primary key, but none was found' in
/home/vhosts/d/default/library/Zend.SVN/Db/Table/Abstract.php:705

A workaround is to set the protected variable $_primary to some
column but this not very clean ...

So my question how can I bypass primary keys check when I query views ?

Regards

没有评论: