Ticket #269 (closed defect: fixed)
Reactor Adaptor read method is incorrect
| Reported by: | dhughes | Owned by: | somebody |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Version: | Severity: | blocker | |
| Keywords: | Cc: |
Description
The ReactorAdaptor?.cfc receives a structure of primaryKeys (which is not always 100% true). It then loops over those values and calls the setters on the reactor record. Once the setters are populated the load method is called. The problem is that the load method only works against primary keys by default. So, if you pass in any values that are not PKs then load will disregard them.
A better solution is to not set the setters, but to call load(argumentCollection=primaryKeys). This will load based on the provided data.
I've attached a working fix to this that builds upon other recently submitted fixes to the ReactorAdaptor?.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)