에서) (선택 따르면 젠드/DB/테이블/Abstract.php, 그것은 포함 여부를 확인 부분에서, 대신에 아래의 코드 도움이된다면
/**
* Returns an instance of a Zend_Db_Table_Select object.
*
* @param bool $withFromPart Whether or not to include the from part of the select based on the table
* @return Zend_Db_Table_Select
*/
public function select($withFromPart = self::SELECT_WITHOUT_FROM_PART)
{
require_once 'Zend/Db/Table/Select.php';
$select = new Zend_Db_Table_Select($this);
if ($withFromPart == self::SELECT_WITH_FROM_PART) {
$select->from($this->info(self::NAME), Zend_Db_Table_Select::SQL_WILDCARD, $this->info(self::SCHEMA));
}
return $select;
}
참조 필드 이름을 (얻기의 table_name을 원하는 것으로 바꿉니다)
$select = $groupsmapper->getDbTable()
->select()
->distinct()
->from(array('table_name'), array('group_area_residence'));
$response = $groupsmapper->getDbTable()->fetchAll($select);
이 친구에게 감사드립니다. 비록 getDbTable가 테이블 이름을 가져 오기로되어 있지 않은지 궁금합니다. 그렇다면 왜 내가 다시 from 부분에 그것을 추가해야합니까? 어쨌든 고마워. – Napoleon