$this->...->select()->join()....
抛出异常:Select query cannot join with another table
Zend_Db_Table_Select会检查Select的表是不是来自于已定义的当前表,当进行Join操作的时候因为引入了其它表,所以会报错。
解决方法:把_integrityCheck设成false
例如:
$select =$this->select();
$select->setIntegrityCheck(false)
->from('tableA','*')
->join('tableB', 'tableA.id=tableB.id')
->where("tableB.status=0");