Whats the best practice in overriding methods? Especially if we need to add another param?
This is not E_STRICT compliant (adding $soft as second param):
public function delete($id, $soft = false, $cascade = true) {
if ($soft) {
return $this->_softDelete();
}
return parent::delete($id, $cascade);
}
Resulting in:
Declaration of Conversation::delete() should be compatible with that of Model::delete()
I know that one shoudn't override methods this way (adding-parameters-to-overriden-method-e-strict-observation).
but If one has to, how would one proceed? (without having to remove E_STRICT) The basic idea was to intercept the normal delete calls without having to rewrite all occurrences of this model method call.