You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@elpete, do you know why when Quick sets up the Mementifier, is trustedGetters set to true? Mementifier won't let you use custom mappers unless the key exists in the entity or trustedGetters is set to false. Would it break Quick if the default was changed here?
My understanding of trustedGetters here is it tells Mementifier to always call the getter even if no method exists. This is so Quick’s onMissingMethod can kick in, if needed.
Yeah, I am pretty sure you are correct. I was trying to come up with a nifty way to use memento mappers when the key may or may not exist in the entity. If you switch trustedGetters to false, then the mappers will always work, but will break Quick's onMissingMethod functionality.
quick/models/BaseEntity.cfc
Lines 2542 to 2555 in a4481cf
@elpete, do you know why when Quick sets up the Mementifier, is
trustedGetters
set to true? Mementifier won't let you use custom mappers unless the key exists in the entity ortrustedGetters
is set to false. Would it break Quick if the default was changed here?Related issue in Mementifier:
coldbox-modules/mementifier#40
The text was updated successfully, but these errors were encountered: