lithium\data\source\database\adapter\MySql::value()

public method

Converts a given value into the proper type based on a given schema definition.

Parameters

  • mixed $value

    The value to be converted. Arrays will be recursively converted.

  • array $schema

    Formatted array from lithium\data\source\Database::schema()

Returns

mixed

Value with converted type.

Source

	public function value($value, array $schema = []) {
		if (($result = parent::value($value, $schema)) !== null) {
			return $result;
		}
		return $this->connection->quote((string) $value);
	}