When a user deletes a Snip with references. Those references remain in the database and become orphaned.
We do not yet want to get into transactions and rollback on our database so let's do the following:
let a user delete a snip if it has no references
if a user tries to delete a snip that has references make a popup appear with the message "Please contact the site administrator to delete a snip that already has references"
When a user deletes a Snip with references. Those references remain in the database and become orphaned.
We do not yet want to get into transactions and rollback on our database so let's do the following:
This should be OK for our prototype.