[RSS Feed/News] How to cancel a save in _preSave() after validation

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I would like to be able to perform some validation to prevent duplicate entries in _preSave and not save if a duplicate exists. Is there a function I can use to tell the entity to slip this one?

edit: It is worth adding some context. I am saving from an array so I don't want to error out the entire process, but rather just skip the duplicate lines.

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom