protected function addEnumColumnConstants(&$script)
    {
        foreach ($this->getTable()->getColumns() as $col) {
            if ($col->isEnumType() || $col->getValueSet()) {
                $script .= "
    /** The enumerated values for the " . $col->getName() . " field */";
                foreach ($col->getValueSet() as $value) {
                    $script .= "
    const " . $this->getColumnName($col) . '_' . $this->getEnumValueConstant($value) . " = '" . $value . "';";
                }
                $script .= "
";
            }
        }
    }
protected function addEnumColumnConstants(&$script)
    {
        foreach ($this->getTable()->getColumns() as $col) {
            if ($col->isEnumType() || $col->getValueSet()) {
                $script .= "
    /** The enumerated values for the " . $col->getName() . " field */";
                foreach ($col->getValueSet() as $value) {
                    $script .= "
    const " . $this->getColumnName($col) . '_' . $this->getEnumValueConstant($value) . " = '" . $value . "';";
                }
                $script .= "
";
            }
        }
    }
protected function addEnumColumnConstants ( & $ script ) { foreach ( $ this -> getTable ( ) -> getColumns ( ) as $ col ) { if ( $ col -> isEnumType ( ) || $ col -> getValueSet ( ) ) { $ script .= "
    /** The enumerated values for the " . $ col -> getName ( ) . " field */" ; foreach ( $ col -> getValueSet ( ) as $ value ) { $ script .= "
    const " . $ this -> getColumnName ( $ col ) . '_' . $ this -> getEnumValueConstant ( $ value ) . " = '" . $ value . "';" ; } $ script .= "
" ; } } }
Adds the valueSet constants for ENUM columns.

@param string &$script The script will be modified in this method.
Adds the valueSet constants for ENUM columns .