I have a listener which contains a preSave() method. Is there a way for me to halt doctrine
from calling the save method if a condition fails. Unfortunately I am not allowed to throw an exception. Is there any other way?
I have a listener which contains a preSave() method. Is there a way for
Share
My first idea would be to set a flag in the preSave()-method and to check for that flag in the save()-method. But I think skipOperation() is what you are looking for: