src/Form/Components/Select.php
public function setDataSource($queryResult, $colNameForLabel, $colNameForValue)
  {
    foreach($queryResult as $value) {
      $this->values[$value[$colNameForLabel]] = array(
        'value'      => $value[$colNameForValue],
        'attributes' => array()
      );
    }
  }
public function setDataSource($queryResult, $colNameForLabel, $colNameForValue)
  {
    foreach($queryResult as $value) {
      $this->values[$value[$colNameForLabel]] = array(
        'value'      => $value[$colNameForValue],
        'attributes' => array()
      );
    }
  }
Définit une datasource permettant de définir des valeurs au select

@param type $queryResult
@param type $colNameForLabel
@param type $colNameForValue