richard.herbert
06/30/2023, 6:24 PMmoment.cfc
in my models/services
folder and have property _name_='moment' _inject_='moment';
in my entity but I get back...
Component [models.services.moment] has no accessible Member with name [VALUE]
What have I missed?bdw429s
06/30/2023, 6:25 PMbdw429s
06/30/2023, 6:26 PMrichard.herbert
06/30/2023, 6:30 PMrichard.herbert
06/30/2023, 6:35 PMproperty _name_='moment' _inject_='moment';
in my handler and that doesn't complain.
I have've done any ColdBox work for some while but I'm remembering the last time I had an issue like this, injecting stuff into an entity, having to wrap it in a onDIComplete()
method. I'll try that. Or do I have that wrong?richard.herbert
06/30/2023, 6:41 PMGeneral application error: key [FUNCTIONNAMES] doesn't exist
- what rabbit hole have I gone down now!bdw429s
06/30/2023, 6:42 PMbdw429s
06/30/2023, 6:42 PMbdw429s
06/30/2023, 6:42 PMrichard.herbert
06/30/2023, 6:43 PMcfvonner
06/30/2023, 6:44 PMrichard.herbert
06/30/2023, 6:44 PMnew models.services.moment()
richard.herbert
06/30/2023, 6:44 PMInit
The constructor takes 0, 1, or 2 arguments.
new moment() Use the current system time and the current system time zone
new moment( now() ) Use the specified time and the current system time zone
new moment( now(), 'America/Pacific' ) Use the specified time and the specified time zone
bdw429s
06/30/2023, 6:44 PMbdw429s
06/30/2023, 6:45 PMbdw429s
06/30/2023, 6:45 PMrichard.herbert
06/30/2023, 6:46 PM