How to fetch many rows order by a specific value

时间:2016-05-29 08:59:03

标签: zend-framework zend-db zend-db-table

by using zend 1.12 how to order the data fetched by, a specific entry first. (order by) how to make the last option for ex 'Bioversity International' be the first one beside the where clause a written below .

$_partnerMapper = new Model_Mapper_Partner();
$_partnerCollection = $_partnerMapper->fetchMany(array('partner_type_id'=>9));
$this->view->partnerCollection = $_partnerCollection;

1 个答案:

答案 0 :(得分:1)

这不是zend 1.12,它不是什么东西,而是像下面的

支持fetchmany($标准= NULL,$顺序= NULL,$计数= NULL,$偏移= -1)

所以你需要做的是 {{1}}