Beforesave() Stopping Save From Working.

I have added method beforeSave() to a model but it has stopped the model saving altogether. There are no validation errors showing or indication of why. The page just returns to the form.

This is happening even if I have no code with the method.

Any ideas?

Code example in model in case anyone asks:

public function beforeSave()




return parent::beforeSave();

Thanks ORey,

I did initially have parent::beforeSave() in there also but I just noticed I was calling it without returning it.

Now it’s working as expected.