Thanks for your help Brian.

It appears that my call to create the user object was wrong. I had it like so before I added aliasing:

<cfset user = reactor.createRecord("user").load(user_ID=arguments.user.getUserID()) />

After I added the field aliasing, the argument name should reflect the field alias as well.

<cfset user = reactor.createRecord("user").load(userID=arguments.user.getUserID()) />

Ah the joys of being a newbie.  :-)

-Justin




Brian Kotek wrote:

Make sure you delete the generated files under reactor/projects. Also, make sure you are really in development mode. Just changing the mode to development doesn't help, once it is in production mode it won't check the XML any more so it won't pick up the switch to development mode. You have to reload the entire instance of Reactor.

On Jan 30, 2008 12:03 PM, Justin Case Trushell <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi All,

    I'm just getting into Reactor and I've run into a problem with
    field aliasing.

    Once I learned that I could alias my field names I immediately did
    so although now I am getting an error:
    *
    *The method setuser_ID was not found in component
    D:\data\Record\userRecordmssql.cfc.


    My object looks like this...

<object name="rhw_user" alias="user"> <field name="user_id" alias="userID" /> <field name="first_name" alias="firstName" />
          <field name="last_name" alias="lastName" />
       </object>

    I've deleted all of the Reactor generated files and restarted my
    application. I am also in "development mode".

    Is there another setting I'm missing?


    Thanks in advance,
    Justin Case Trushell



    -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    -- -- -- -- --
    Reactor for ColdFusion Mailing List
    [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
    Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
    -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    -- -- -- -- --



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- !DSPAM:47a0b8ac631641073712149!



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to