I’m using CakePHP 4.1.1. I have been translating some plugins since version 3.9. Having trouble with the beforeSave callback.
When the condition shown in the image is met:
Gives an error message:
RuntimeException throws the message:
The beforeSave callback must return false or EntityInterface instance. Got boolean instead.
A little confused. I ask for advice. Thank.