protected function serializeType($value, $type)
    {
        return $this->connection->convertToDatabaseValue(
            $value,
            TypeMapper::getDoctrineTypeByType($type)
        );
    }
protected function serializeType($value, $type)
    {
        return $this->connection->convertToDatabaseValue(
            $value,
            TypeMapper::getDoctrineTypeByType($type)
        );
    }
protected function serializeType ( $ value , $ type ) { return $ this -> connection -> convertToDatabaseValue ( $ value , TypeMapper :: getDoctrineTypeByType ( $ type ) ) ; }
Returns a string representation which can be stored in the database

@param mixed $value
@param integer $type
@return string
Returns a string representation which can be stored in the database