Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pdellepiane's avatar

Always execute after update

Is there any way to run a method everytime I update a model even if no information was changed in the DB?

Im updating an image but the name must be the same after update. Tried events but didn't work, updated event is not triggered because no information was changed in the model. Tried with touch method and didn't activate the updated event either.

Thanks in advance!

0 likes
2 replies
sr57's avatar

I m updating

So why not launching your method or firing an event on the same time?

Snapey's avatar

if nothing changed, what's the point of calling the method?

Please or to participate in this conversation.