I need to make entities to change status except being deleted. For those I added a listener for on flush method. So, I can see all the entities, that being deleted, but cannot prevent them to be deleted. Is it possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Throwing a Exception in the event handler cut the transaction and rollback the changes.