public function getPhpDefaultValue()
    {
        if (null === $this->defaultValue) {
            return null;
        }

        if ($this->defaultValue->isExpression()) {
            throw new EngineException('Cannot get PHP version of default value for default value EXPRESSION.');
        }

        if (in_array($this->mappingType, [ PropelTypes::BOOLEAN, PropelTypes::BOOLEAN_EMU ])) {
            return $this->booleanValue($this->defaultValue->getValue());
        }

        if (PropelTypes::PHP_ARRAY === $this->mappingType) {
            return $this->getDefaultValueForArray($this->defaultValue->getValue());
        }
        if (PropelTypes::SET === $this->mappingType) {
            return $this->getDefaultValueForSet($this->defaultValue->getValue());
        }

        return $this->defaultValue->getValue();
    }
public function getPhpDefaultValue()
    {
        if (null === $this->defaultValue) {
            return null;
        }

        if ($this->defaultValue->isExpression()) {
            throw new EngineException('Cannot get PHP version of default value for default value EXPRESSION.');
        }

        if (in_array($this->mappingType, [ PropelTypes::BOOLEAN, PropelTypes::BOOLEAN_EMU ])) {
            return $this->booleanValue($this->defaultValue->getValue());
        }

        if (PropelTypes::PHP_ARRAY === $this->mappingType) {
            return $this->getDefaultValueForArray($this->defaultValue->getValue());
        }
        if (PropelTypes::SET === $this->mappingType) {
            return $this->getDefaultValueForSet($this->defaultValue->getValue());
        }

        return $this->defaultValue->getValue();
    }
public function getPhpDefaultValue ( ) { if ( null === $ this -> defaultValue ) { return null ; } if ( $ this -> defaultValue -> isExpression ( ) ) { throw new EngineException ( 'Cannot get PHP version of default value for default value EXPRESSION.' ) ; } if ( in_array ( $ this -> mappingType , [ PropelTypes :: BOOLEAN , PropelTypes :: BOOLEAN_EMU ] ) ) { return $ this -> booleanValue ( $ this -> defaultValue -> getValue ( ) ) ; } if ( PropelTypes :: PHP_ARRAY === $ this -> mappingType ) { return $ this -> getDefaultValueForArray ( $ this -> defaultValue -> getValue ( ) ) ; } if ( PropelTypes :: SET === $ this -> mappingType ) { return $ this -> getDefaultValueForSet ( $ this -> defaultValue -> getValue ( ) ) ; } return $ this -> defaultValue -> getValue ( ) ; }
Returns the default value, type-casted for use in PHP OM.

@return mixed
Returns the default value type - casted for use in PHP OM .