The other day I decided to set my $db object's fetchmode to
Zend_Db::FETCH_OBJ in my bootstrap. My authentication action helper relies
on a database connection that I set up in the bootstrap and stick in the
registry.I got an error the next time I tried to log in to this
work-in-progress because Zend_Auth_Adapter_DbTable apparently assumes the
default Zend_Db::FETCH_ASSOC

I remedied it by having my authentication action helper's authenticate()
method set the fetchmode the way Zend_Auth_Adapter_DbTable likes it before
passing it to  the Zend_Auth_Adapter_DbTable constructor, I just wonder
whether anyone would consider this an "issue" worth reporting formally. (I
could probably even patch it myself, it should not be a big deal.)

-- 
David Mintz
http://davidmintz.org/

The subtle source is clear and bright
The tributary streams flow through the darkness

Reply via email to