[Coldbox 4.0.0] - PopulateModel() error

Hi,

I created an object in my model and I’m trying to use populateModel in my handler, but I get this error when I try to call the populateModel() method.

Error Type: Application : [N/A]
Error Messages: The method getContext was not found in component coldbox.system.web.Controller.
Ensure that the method is defined, and that it is spelled correctly.

Below is my boilerplate handler code:

I have a file called “Registration.cfc” in my models directory as well.

It looks like:

component accessors=“true”{

// properties
property name=“email”;
property name=“password”;
property name=“accountType”;

// validation
this.constraints = {
email = {required=true,type=“email”},
password = {required=true},
accountType = {required=true}
};

function init(){
return this;
}

}

Well, the problem seems to be in the FrameworkSuperType.cfc. The getContext method isn’t available any longer from what I can tell. I reverted back to 3.8.1 and my code works fine. In the populateModel() method there was some code that looked like : controller.getContext() and the getContext() method is no longer there from what I can tell.

thanks, this is fixed now.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox