| Sam, There's a difference between: <cfset var foo = "something"> and... <cfset variables.foo = "something"> Variables.foo goes into the variables scope of the CFC, which means it becomes part of the data the CFC has access to for the whole lifetime of the CFC, i.e. till it either times out or is destroyed. var foo, on the other hand, dies as soon as the function is done executing. ;) So <cfset var user = reactorfactory.createRecord("User")> means that your user object will cease to be viable one the function it appears in is done running. It's an important distinction because when you have a MG controller with a record set into it's variables scope, everyone accessing it will see the same values in that record... so, for example, if you did <cfset arguments.event.setValue("userId",variables.userRecord.getUserID())>, every single person hitting that page will see the same value, not the right one. Think of it this way... setting a value into a Controller's variables scope is effectively the same as setting it into the application scope. For per-user variables you want to use session variables even if you're using MG or any other framework. As far as your reactor error, I'm not sure what to tell ya. You need to be very sure to delete everything under c:\webroot\reactor\project and then rerun using ?init=true on the URL in your MG application. That'll re-create your Reactor objects and re-run the controller configuration in MG. You may try restarting the server if you have that luxury. HTH, J ------------------------------------------------ Jared C. Rypka-Hauer Continuum Media Group LLC Member, Team Macromedia - ColdFusion "That which does not kill me makes me stranger." - Yonah Schmeidler ![]() ![]() ![]() On Apr 18, 2006, at 5:39 PM, Sam Clement wrote: Hey Jared, |
- Re: [Reactor For CF] cascadeDelete... Jared Rypka-Hauer
- Re: [Reactor For CF] New Commit committed wikiwikiman
- RE: [Reactor For CF] New Commit committed Doug Hughes
- RE: [Reactor For CF] New Commit committed Chris Blackwell
- RE: [Reactor For CF] New Commit committed Doug Hughes
- RE: [Reactor For CF] New Commit committed João Fernandes
- Re: [Reactor For CF] New Commit committed Sam Clement
- Re: [Reactor For CF] New Commit committed Jared Rypka-Hauer
- Re: [Reactor For CF] New Commit committed Sam Clement
- Re: [Reactor For CF] New Commit committ... Sean Corfield
- Re: [Reactor For CF] New Commit committ... Jared Rypka-Hauer
- RE: [Reactor For CF] New Commit committed Doug Hughes
- Re: [Reactor For CF] New Commit committed Sam Clement
- RE: [Reactor For CF] New Commit committed João Fernandes
- RE: [Reactor For CF] New Commit committed Doug Hughes
- Re: [Reactor For CF] New Commit committed Chris Phillips




