Ejemplo n.º 1
0
 /**
  * Gets the list of values for an ENUM column
  *
  * @param string $colname The ENUM column name.
  *
  * @return array list of possible values for the column
  */
 public static function getValueSet($colname)
 {
     $valueSets = FacturaPeer::getValueSets();
     if (!isset($valueSets[$colname])) {
         throw new PropelException(sprintf('Column "%s" has no ValueSet.', $colname));
     }
     return $valueSets[$colname];
 }