2010年12月14日星期二

[fw-db] Re: DbTable class prefix

I don't think so, but I'm not 100% sure. I typically use the long-hand as is
then skips all the magic __call stuff. It's also easier to then find all the
references to your table class.
I also tend to explictly set up find methods for the ones I need. That way I
get IDE auto-completion as well.

So in the example, I'd have something like

class Application_Model_DbTable_UserRow extends Zend_Db_Table_Row_Abstract {
//...
public function findBugs(){
return $this->findDependentRowset('Application_Model_DbTable_Bugs');
}
//...
}

$bugs = $user1234->findBugs();


Cheers,
David
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/DbTable-class-prefix-tp3085254p3086915.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: