0

Delete operation in BeforeSaveEvent handler is flushing the loaded/persisted object into the database. And then invoking BeforeSaveCustomValidator.

  1. Is there any way to restrict the insertion/flushing of non-validated data?
  2. Can we isolate delete operation to a specific table to remove the entry rather than flushing entire object?
K.Dᴀᴠɪs
  • 9,945
  • 11
  • 33
  • 43
Dheeraj
  • 11
  • 3
  • This answer https://stackoverflow.com/questions/25233089/how-to-get-old-entity-value-in-handlebeforesave-event-to-determine-if-a-propert will help you – Jonathan JOhx Dec 30 '18 at 16:11
  • Possible duplicate of [How to get old entity value in @HandleBeforeSave event to determine if a property is changed or not?](https://stackoverflow.com/questions/25233089/how-to-get-old-entity-value-in-handlebeforesave-event-to-determine-if-a-propert) – Wayne Phipps Dec 30 '18 at 16:56

0 Answers0