Symfony虽然不起作用

Trying to do a dropdown list with this query and trying to return an array with the while to do that and the while don't work :s

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]";`

Your

$stmt->fetchColumn(0) 

has a false evaluation (probably a null result). In this case there is nothing to while over.