RE: [coldbox:13639] model inject model dependency and ocm

  1. How are you injecting your ocm dependency? i.e. Property annotations, WireBox config mappings, manually retrieving it from WireBox on init?

  2. Where in your component are you trying to use it. i.e. init() is called before DI is complete so you can’t use dependencies there. That’s what onDIComplete() is for.

Also, what version of ColdBox are you on and what is your DI engine? (legacy Bean factory, WireBox, ColdSpring, LightWire, etc)

Thanks!

~Brad

I am using "<cfproperty name="DataUserLevels" inject="Ocm"
scope="Instance"/>"

to inject them on top, running cb 3.1, adobe cf8, I am using it after
the init() in side of the method.