/** * 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 = GastofacturacionPeer::getValueSets(); if (!isset($valueSets[$colname])) { throw new PropelException(sprintf('Column "%s" has no ValueSet.', $colname)); } return $valueSets[$colname]; }