MVC model and SQL table name are the same
开发者_JAVA百科My model is called Application_Model_Poll. Zend is forcing me name my database table the same as the model. Is there anyway I can just call the table Poll?
class Application_Model_DbTable_Poll extends Zend_Db_Table_Abstract
{
protected $_name = 'Poll';
}
精彩评论