Ticket #10 (closed defect: fixed)
Reactor should support checking records exist
| Reported by: | tom.chiverton@… | Owned by: | dhughes |
|---|---|---|---|
| Type: | defect | Priority: | lowest |
| Milestone: | Component: | Reactor - Gateway | |
| Version: | Severity: | trivial | |
| Keywords: | Cc: |
Description
(code is based on SVN from some time last week).
As per mailing list post from Doug:
"I'm not suggesting adding the call to exists() in the general save() method
though (that would generate a pointless extra DB call as you say), just
always having it in the DAO and exposing it via the Record as a matter of
course for people who want to use it."
Modifications I've made here follow, but if you ask for exists(primarKeyField=<defaultValueOfField) it always says yes, even if there is no such field. The fix is porbably not to load() before calling exists().
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

