1
試圖做一個下拉列表與此查詢,並試圖返回一個數組用,而要做到這一點並同時不工作:■Symfony的同時不起作用
static public function getConta() {
$criteria = new Criteria();
$criteria->addSelectColumn(MEMataPeer::CONTA);
$criteria->addGroupByColumn(MEMataPeer::CONTA);
$contas = array();
$stmt = MEMatalPeer::doSelectStmt($criteria);
echo "##".$stmt->rowCount();
while($res = $stmt->fetchColumn(0)) { // <- this while don't work don't know why ?????
$contas[$res] = $res;
echo "<br/>[$res]";`
定義「不工作」。我整理了你的代碼以使其可讀。 – ceejayoz 2013-03-21 18:49:25