You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -214,40 +273,6 @@ All query keys are normalized to camelCase:
214
273
-`user-name` → `userName`
215
274
-`UserName` → `userName`
216
275
217
-
### Input Format Requirements
218
-
219
-
Ray.InputQuery expects **flat key-value pairs** as input. Nested array structures are not supported:
220
-
221
-
```php
222
-
// ✅ Correct - Flat structure
223
-
$data = [
224
-
'customerName' => 'John Doe',
225
-
'customerEmail' => 'john@example.com',
226
-
'shippingCity' => 'Tokyo'
227
-
];
228
-
229
-
// ❌ Wrong - Nested arrays (e.g., from customer[name] form fields)
230
-
$data = [
231
-
'customer' => [
232
-
'name' => 'John Doe',
233
-
'email' => 'john@example.com'
234
-
]
235
-
];
236
-
```
237
-
238
-
**Why this restriction?** When nested objects are flattened for database operations, all property names must be globally unique to avoid conflicts. This design ensures predictable parameter binding and prevents naming collisions.
239
-
For HTML forms, use flat naming:
240
-
241
-
```html
242
-
<!-- ✅ Correct -->
243
-
<inputname="customerName">
244
-
<inputname="customerEmail">
245
-
246
-
<!-- ❌ Avoid -->
247
-
<inputname="customer[name]">
248
-
<inputname="customer[email]">
249
-
```
250
-
251
276
## Integration
252
277
253
278
Ray.InputQuery is designed as a foundation library to be used by:
0 commit comments