我有两个简单的表格:<代码>项目和项目
。
因此,我写道:
class Admin_Model_Projects extends Zend_Db_Table_Abstract
{
protected $_name = main_projects ;
protected $_primary = mai_id ;
protected $_sequence = true;
protected $_dependentTables = array( Admin_Model_SubProjects );
....
而且:
class Admin_Model_SubProjects extends Zend_Db_Table_Abstract
{
protected $_name = sub_projects ;
protected $_primary = sub_id ;
protected $_sequence = true;
protected $_referenceMap = array(
columns => mai_id ,
refTableClass => Admin_Model_Projects ,
refColumns => mai_id
);
.....
我很想知道,为什么我拿到<代码>。 表 Admin_Model_Subprojects to table Admin_Model_project 当我打上<代码><?php呼呼应了1美元“现成”;findParentRow(Amin_Model_Projects );?>