src/EntityDescriptor/PermanentEntity.php
protected static function formatFieldValue($name, $value) {
		$field	= static::$validator->getField($name);
		if( $field ) {
			$field->getType()->formatValue($field, $value);
		}
		return parent::formatFieldValue($name, $value);
	}
protected static function formatFieldValue($name, $value) {
		$field	= static::$validator->getField($name);
		if( $field ) {
			$field->getType()->formatValue($field, $value);
		}
		return parent::formatFieldValue($name, $value);
	}
protected static function formatFieldValue ( $ name , $ value ) { $ field = static :: $ validator -> getField ( $ name ) ; if ( $ field ) { $ field -> getType ( ) -> formatValue ( $ field , $ value ) ; } return parent :: formatFieldValue ( $ name , $ value ) ; }
Format the value from PHP type to SQL scalar

@param string $name The field name to format
@param mixed $value The field value to format
@return string The formatted $Value
@see PermanentObject::formatValue()
Format the value from PHP type to SQL scalar