Ticket #192 (new enhancement)
Opened 2 months ago
bulk assignment
| Reported by: | TomChiverton | Owned by: | dhughes |
|---|---|---|---|
| Type: | enhancement | Priority: | normal |
| Milestone: | Component: | Reactor - Record | |
| Version: | Severity: | normal | |
| Keywords: | Cc: |
Description
Dutch Rapley has suggested:
Wouldn't it be fun if we could do something like the following?
<cfset Employee = Reactor.createRecord("Employee")>
<cfset Employee.setProperties(form).save()>
OR
<cfset Employee = Reactor.createRecord("Employee").load(EmployeeID =
form.EmployeeID)>
<cfset Employee.setProperties(form).save()>
The idea is that setProperties would loop through the fieldnames in
the table, and if a corresponding key existed in the structure that's
being passed, it would set that property.
Note: See
TracTickets for help on using
tickets.

