我正在尝试调用两个表来调用它们的名称并将其插入新表中。
这是型号代码。
public function fetchAll()
{
$resultSet = array(
$this->getDbTable()->fetchAll(),
$JournalisticDataBase = new Application_Model_JournalisticMapper(),
$SponosorDataBase = new Application_Model_GuestbookMapper() );
$entries = array();
foreach ($resultSet as $row) {
$entry = new Application_Model_JournalisticSponsor();
$entry->setJS_ID($row->JS_ID)
->setJ_fullname($row->J_fullname)
->setS_fullname($row->S_fullname)
->setJS_VisitDate($row->JS_VisitDate);
$entries[] = $entry;
}
return $entries;
}