To prevent duplicate data, I need to check if a similar object exists in the beforeSave of my custom class.
How can I tell it to cancel creating the object in beforeSave if the certain conditions are met?
In plain english, it would look something like:
if (similar object already exists) {
don't go through with creating this object
}