Ticket #344 (closed defect: fixed)
ReactorAdaptor uses name when it should use alias for pri key
| Reported by: | denny | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Version: | 3.0.178 | Severity: | major |
| Keywords: | Cc: |
Description
Just what the subject says.
Here's a patch, inline, because it's one line.
Index: ModelGlueGesture/ModelGlue?/unity/orm/ReactorAdapter.cfc =================================================================== --- ModelGlueGesture/ModelGlue?/unity/orm/ReactorAdapter.cfc (revision 14973) +++ ModelGlueGesture/ModelGlue?/unity/orm/ReactorAdapter.cfc (working copy) @@ -84,7 +84,7 @@
<cfset md[fields[i].alias].comment = dict.getValue("#arguments.table#.#fields[i].alias#.comment") />
<cfif fields[i].primaryKey>
- <cfset arrayAppend(result.primaryKeys, fields[i].name) /> + <cfset arrayAppend(result.primaryKeys, fields[i].alias) />
</cfif>
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)