public function getDefaultValueString()
    {
        $defaultValue = $this->getDefaultValue();

        if (null === $defaultValue) {
            return 'null';
        }

        if ($this->isNumericType()) {
            return (float) $defaultValue->getValue();
        }

        if ($this->isTextType() || $this->getDefaultValue()->isExpression()) {
            return sprintf("'%s'", str_replace("'", "\'", $defaultValue->getValue()));
        }

        if ($this->getType() === PropelTypes::BOOLEAN) {
            return $this->booleanValue($defaultValue->getValue()) ? 'true' : 'false';
        }

        return sprintf("'%s'", $defaultValue->getValue());
    }
public function getDefaultValueString()
    {
        $defaultValue = $this->getDefaultValue();

        if (null === $defaultValue) {
            return 'null';
        }

        if ($this->isNumericType()) {
            return (float) $defaultValue->getValue();
        }

        if ($this->isTextType() || $this->getDefaultValue()->isExpression()) {
            return sprintf("'%s'", str_replace("'", "\'", $defaultValue->getValue()));
        }

        if ($this->getType() === PropelTypes::BOOLEAN) {
            return $this->booleanValue($defaultValue->getValue()) ? 'true' : 'false';
        }

        return sprintf("'%s'", $defaultValue->getValue());
    }
public function getDefaultValueString ( ) { $ defaultValue = $ this -> getDefaultValue ( ) ; if ( null === $ defaultValue ) { return 'null' ; } if ( $ this -> isNumericType ( ) ) { return ( float ) $ defaultValue -> getValue ( ) ; } if ( $ this -> isTextType ( ) || $ this -> getDefaultValue ( ) -> isExpression ( ) ) { return sprintf ( "'%s'" , str_replace ( "'" , "\'" , $ defaultValue -> getValue ( ) ) ) ; } if ( $ this -> getType ( ) === PropelTypes :: BOOLEAN ) { return $ this -> booleanValue ( $ defaultValue -> getValue ( ) ) ? 'true' : 'false' ; } return sprintf ( "'%s'" , $ defaultValue -> getValue ( ) ) ; }
Returns a string that will give this column a default value in PHP.

@return string
Returns a string that will give this column a default value in PHP .