2008年11月9日星期日

Re: [fw-db] Unit testing Zend_Db_Table

2008/11/9 keith Pope <mute.pop3@googlemail.com>
My problem is that my Model instantiates the DB_Table class and then I
get an error saying that it has no adapter. Is there a dummy adapter?

I used a db connection to a sqlite database that replicates the structure of the production mysql db. You can use this solution with Zend_Db_Table::setDefaultAdapter().

--
Giorgio Sironi
Piccolo Principe & Ossigeno Scripter
http://www.sourceforge.net/projects/ossigeno

没有评论: