O.K. I've
been beating myself up on this and I've reached a brick wall. I'm looking for
ideas.
The basic
problem is that Model Glue Unity scaffolding doesn't work on an
UPPER_CASE_TABLE_NAME in Oracle or a MixedCaseTableName for that matter.
The suspect
is Reactor. I've been tracing my way through the code and here's where I am
stuck.
In ModelGlue/unity/orm/ReactorAdapter.cfc getObjectMetadata() there is a <cfset rmd = getReactor().createMetadata(arguments.table) /> which calls reactor/reactorFactory.cfc createMetadata().
The table I'm
trying to scaffold is "MYNEWTABLENAME". As part of the request it runs through the
function 12 times. On the twelfth time through arguments.table leaves createMetadata()
as "MYNEWTABLENAME" and is received by createMetadata as objectAlias with a
value of "mynewtablename". Somehow it is getting transferred from UPPER
CASE to lower case and there doesn't appear to be anything between the two.
It has taken me many hours to trace through the code to get
to this point. I'd really appreciate if someone could give me some kind of a
hint as to what I could try or what the problem is. Thanks.
I have determined what I've told you above by doing this
<cfif Compare(arguments.objectAlias, 'mynewtablename') EQ
0>
<cfdump var="#session.counter#"
label="session.counter">
<cfoutput><br><br>reactorFactory.cfc
createMetadata</cfoutput><cfdump
var="#arguments.objectAlias#"
label="arguments.objectAlias">
<cfset session.counter = 0>
<cfabort>
</cfif> .
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
