protected function _createFields($data, $schema, $context) {
		$fields = [];
		$values = [];

		foreach ($data as $field => $value) {
			$fields[] = $this->name($field);
			$values[] = $this->value($value, isset($schema[$field]) ? $schema[$field] : []);
		}
		return [
			'fields' => join(', ', $fields),
			'values' => join(', ', $values)
		];
	}
protected function _createFields($data, $schema, $context) {
		$fields = [];
		$values = [];

		foreach ($data as $field => $value) {
			$fields[] = $this->name($field);
			$values[] = $this->value($value, isset($schema[$field]) ? $schema[$field] : []);
		}
		return [
			'fields' => join(', ', $fields),
			'values' => join(', ', $values)
		];
	}
protected function _createFields ( $ data , $ schema , $ context ) { $ fields = [ ] ; $ values = [ ] ; foreach ( $ data as $ field => $ value ) { $ fields [ ] = $ this -> name ( $ field ) ; $ values [ ] = $ this -> value ( $ value , isset ( $ schema [ $ field ] ) ? $ schema [ $ field ] : [ ] ) ; } return [ 'fields' => join ( ', ' , $ fields ) , 'values' => join ( ', ' , $ values ) ] ; }
Renders the fields part for _create_ queries.

@see lithium\data\source\Database::_fieldsReturn()
@param array $data
@param array $schema An array defining the schema of the fields used in the criteria.
@param object $context Generally a `data\model\Query` instance.
@return array Array with `fields` and `values` keys which hold SQL fragments of fields
an values separated by comma.
Renders the fields part for _create_ queries .