Reserved word "component"?
Hey everyone.
Running CF 9.0.1 on Win7. I'm trying to get CF ORM to work, doing pretty well so far. I have a problem that I am hoping is not a showstopper.
My client has an MSSQL database and one of the tables in their OO structure is named "component", and has a many-to-many relationship with two other tables. When I try to define the relationship between this other table and "component":
<cfproperty name="components" type="array" fieldtype="many-to-many" cfc="component" linktable="xref" fkcolumn="other_table" inversejoincolumn="component" />
This is throwing an error:
CFC component could not be initialized. | |
| Check if the persistent attribute in component is set to "true". | |
| ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem. | |
When I comment out this cfproperty line, all the links work fine (except the one that the statement defines). I'm thinking that "component" is a reserved word in this context. The problem is, that is what the table and linktable fields are named, and I can't change it.
My question is: Am I screwed, or is there some sort of workaround I can do here?
