public function convertToPHPValue($value)
    {
        try {
            return Type::getType($this->dbType($this->getDbConnection()))
                ->convertToPHPValue(
                    $value,
                    $this->getDbConnection()->getDatabasePlatform()
                );
        } catch (\Exception $exception) {
            throw new ValidationError($exception->getMessage(), 'invalid');
        }
    }
public function convertToPHPValue($value)
    {
        try {
            return Type::getType($this->dbType($this->getDbConnection()))
                ->convertToPHPValue(
                    $value,
                    $this->getDbConnection()->getDatabasePlatform()
                );
        } catch (\Exception $exception) {
            throw new ValidationError($exception->getMessage(), 'invalid');
        }
    }
public function convertToPHPValue ( $ value ) { try { return Type :: getType ( $ this -> dbType ( $ this -> getDbConnection ( ) ) ) -> convertToPHPValue ( $ value , $ this -> getDbConnection ( ) -> getDatabasePlatform ( ) ) ; } catch ( \ Exception $ exception ) { throw new ValidationError ( $ exception -> getMessage ( ) , 'invalid' ) ; } }
Convert the value to a php value.

As a general rule, convertToPHPValue() should deal gracefully with
any of the following arguments:
- An instance of the correct type.
- A string
- None (if the field allows null=True)

@param $value

@return mixed

@throws ValidationError

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
Convert the value to a php value .