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

That doesn’t answer the question, but unless you are declaring the mappings in your WireBox config as .asSingleton() I’ll assume they are transient. i.e. if you inject menu into two different handlers, each handler has a separate instance of the menu object.

No matter, that was really just a side question.
Did you try calling Permissions.qUserLevel() directly from a test page somewhere?

Also, you could try catch the error, and dump/abort out the instance/variables scope to see what exists at the time that it is erroring.



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

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