Instead of using $this->fetchAll('email = ?',$email)->current()
inside the model class, is there a way to do $this->fetchByEmail($email)
or $this->findByEmail($email)
?
There's already a magic method like this for Zend_Log
, where instead of $myLogger->log("Something went wrong",Zend_Log::CRIT)
you just write $myLogger->crit("Something went wrong")
and it automagically gets mapped ( via some funky reflection in the __call()
method ).
Does anybody know if there is something like that in any of the Zend_Db
classes, or am I going to have to write something to do this for me?