Ticket #210 (closed enhancement: fixed)
ReactorORMController is almost generic!
| Reported by: | seancorfield | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Version: | 2.0.304 | Severity: | normal |
| Keywords: | Cc: |
Description
ReactorORMController could, in theory, be renamed ORMController since it relies on the AbstractORMAdapter interface.
Well, it's *mostly* generic. There are two places that I've found so far where it assumes ActiveRecord? style ORMs:
Line 121:
<cfset record = orm.new(table).load(argumentCollection=criteria) />
This should be:
<cfset record = orm.read(table,criteria) />
Line 175:
<cfset record.save() />
This should be:
<cfset orm.commit(table, record) />
This makes the ORM controller more generic and makes it easier to write other ORM adapters.
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)