I'm calling validateWrite table method from class and I need to pass boolean parameter to it in order to skip one of the check methods called inside validateWrite, but it's not possible, because validateWrite method of table can't be overridden. Is there any way to pass this parameter or to skip the check inside thos method? Please advise.
If you see a validateWrite()
method, it's by definition overridden from xRecord.validateWrite()
. I'm pretty sure you can just add a parameter, but it needs a default, so kernel calls won't fail. A sample declaration is:
public boolean validateWrite(boolean _skipWhatever = false)