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

to avoid the confusion, those are 2 models talking talking to one another, not handlers.

Yes I know-- I was just trying pin-point if the ocm injection happened once when the app started up (i.e. menu and permissions were singletons) or if it happened over and over throughout the life of the app each time a new menu and permission object was created.

yes, the query works on its own, it only errors when I attempt to use the inject OCM variable.

Sorry, not what I meant. Does the Permissions.qUserLevel() method “see” the Instance.DataUserLevels variable when it is called directly in a test view or handler? You original post seemed to indicate that the broken behavior in Permissions.qUserLevel() was only present when it it was called from the menu object.

Also, to back up a bit, what fires the onAppInit() method?

~Brad

Does the Permissions.qUserLevel() method “see” the Instance.DataUserLevels variable when it is called directly in a test view or handler?

yes, it works as expected

what fires the onAppInit() method?

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