Anything I need to be aware of if using `this.trig...
# cfml-general
b
Anything I need to be aware of if using
this.triggerdatamember = true
in
Application.cfc
? Long story short I needed to add this to prevent errors which I can go into detail about if needed. Just checking if there is any negative impact from setting that or if it's harmless...
p
search for it there
πŸ™ 1
b
It sounds relatively harmless (?). Apparently getters and setters or properties in a model component I created could not be found (even though I added them to the model, though in an indirect way), so I had to add this to get Lucee to search for them. Honestly I'm not sure why the data members of my new model are not accessible to begin with, but as far as I can tell, letting Lucee look for the accessors and find them seems to work and seems fine πŸ€·β€β™‚οΈ
p
Do you have accessors=true at the top of your component?
b
Yes, it's set as true. I am doing some roundabout ways of bringing in two other models and their properties using getComponentMetaData() and adding the members to my new model. Probably something going on there, but it all works so not sure if I should try to rework it or just leave it be.
p
Did you reset box or clear your component cache after adding that to the component?
Should allow you for getters and setters for your model
b
No I didn't clear anything (in fact I didn't even know you could do that)
p
Yea you change your component and likely it’s stuck in cache
It’s in the Lucee admin
b
Good to know. I am running things in docker containers, so not sure how that plays into things but I'll go into Lucee admin and clear the cache πŸ™
πŸ‘πŸ» 1