Overridable Model methods
As the title says, being able to override some model methods by having them be virtual, such as
RequestOwnership
, SetOwnership
, and ClearOwnership
would be very nice as I cannot do this on my own. Yes I know I can abstract them out, but it can be confusing to other's in the project when they see RequestOwnership still available and bypassing perhaps any potential safety checks / additional calls. I believe this should be pretty simple and AFAIK not break anything as the signature would be the same, since there is no additional parameters, name changes, or whatever.3 Replies
Can you outline more of why you're trying to override these? What other logic are you performing on top of requesting ownership of the model and why does it not make sense in its own method?
Current use case is a class I have which has its own safety checks for request ownership before it allows it to go through, additionally, it invokes other methods if the checks do pass besides just requesting ownership. This certainly isn't a required feature or anything, but would be QOL for development as if someone else is working with that system (which would be the case) then they don't use the incorrect method and break the checks that are needed for it to work right
That makes sense. Super helpful.