Extends
lithium\data\source\Database
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 = array()) {
if (is_array($value)) {
return parent::value($value, $schema);
}
return "'" . $this->connection->escapeString($value) . "'";
}