RE: [coldbox:13743] Re: model inject model dependency and ocm

my understanding is the framework calls that when the application is reinitialized. is that incorrect?

It depends on the applicationStartHandler setting in your config. If it is set to “main.onAppInit” then it probably gets called.

Did you try turning on the WireBox debugging via LogBox to try and see what is happening when the permission object is injected (and autowired)?
What about try/catching the error and dumping out the contents of “variables”?



this is really weird, it appears to be working now. yes I was reinit the framework each time, but it was never working.

I restarted the server and bam it is working now. seems odd. can models inject models, or should i use handlers only?