protected function addEnumAccessorBody(&$script, Column $col)
    {
        $cfc = $col->getPhpName();
        $clo = strtolower($col->getName());
        if ($col->isLazyLoad()) {
            $script .= $this->getAccessorLazyLoadSnippet($col);
        }

        $script .= "
        if (null === \$this->$clo) {
            return null;
        }
        \$valueSet = " . $this->getPeerClassname() . "::getValueSet(" . $this->getColumnConstant($col) . ");
        if (!isset(\$valueSet[\$this->$clo])) {
            throw new PropelException('Unknown stored enum key: ' . \$this->$clo);
        }

        return \$valueSet[\$this->$clo];";
    }
protected function addEnumAccessorBody(&$script, Column $col)
    {
        $cfc = $col->getPhpName();
        $clo = strtolower($col->getName());
        if ($col->isLazyLoad()) {
            $script .= $this->getAccessorLazyLoadSnippet($col);
        }

        $script .= "
        if (null === \$this->$clo) {
            return null;
        }
        \$valueSet = " . $this->getPeerClassname() . "::getValueSet(" . $this->getColumnConstant($col) . ");
        if (!isset(\$valueSet[\$this->$clo])) {
            throw new PropelException('Unknown stored enum key: ' . \$this->$clo);
        }

        return \$valueSet[\$this->$clo];";
    }
protected function addEnumAccessorBody ( & $ script , Column $ col ) { $ cfc = $ col -> getPhpName ( ) ; $ clo = strtolower ( $ col -> getName ( ) ) ; if ( $ col -> isLazyLoad ( ) ) { $ script .= $ this -> getAccessorLazyLoadSnippet ( $ col ) ; } $ script .= "
        if (null === \$this->$clo) {
            return null;
        }
        \$valueSet = " . $ this -> getPeerClassname ( ) . "::getValueSet(" . $ this -> getColumnConstant ( $ col ) . ");
        if (!isset(\$valueSet[\$this->$clo])) {
            throw new PropelException('Unknown stored enum key: ' . \$this->$clo);
        }

        return \$valueSet[\$this->$clo];" ; }
Adds the function body for an enum accessor method

@param string &$script The script will be modified in this method.
@param Column $col     The current column.

@see        addDefaultAccessor()
Adds the function body for an enum accessor method