Search code examples
variable-assignmentrailocfwheels

invalid assignment left-hand side (Not hyphenated variable name)


I've got a fresh install of CFWheels on Railo and the first time I tried to initiate a model I get this error invalid assignment left-hand side on the line where I do that. My code is as follows:

<cfset newUser = model('User').new() />

I have a users table in my DB, I've tried adding/removing the User.cfc from the models dir (just to see if something was going on with that). I've fiddled with settings, etc and I always get the error. I can run a query against the table manually by doing:

<cfquery name="test" datasource="app"> SELECT * FROM Users</cfquery>

I get the expected result. So I know my DB connection is good, my Wheels conventions should automatically select the correct table, (I mean I'm not getting the wheels table not found error) so I suspect something is up with Railo. (I'm used to working in CF not Railo).

Thoughts on what might be going on? I've read some stuff about the NULL Support option and a bug in Railo, but I don't think this should be causing that. (NULL Support is set to "Complete Support")

Trace can be viewed at: http://app.snapbought.com/user/create My model declaration is on line 9 of the User.cfc controller.


Solution

  • As per the comments on the question, the code in the CFWHeels framework is not currently compatible with Railo's "Full null support" option. Turn it off to use CFWheels.