Top "Soft-delete" questions

Soft delete is to delete data from database in a way in which it can be recovered in the future rather than permanently deleting the data,

Are soft deletes a good idea?

Are soft deletes a good idea or a bad idea? Instead of actually deleting a record in your database, you …

sql database database-design data-modeling soft-delete
Physical vs. logical / soft delete of database record?

What is the advantage of doing a logical/soft delete of a record (i.e. setting a flag stating that …

sql database soft-delete
Why soft deleted entities appear in query results?

I am trying to implement soft deleting concept. Here is my object: class Post extends Eloquent { /** * The database table used …

laravel laravel-4 eloquent soft-delete
Laravel Soft Delete restore() Error

The following soft delete code works fine for me: $post = Post::find($post_id); $post->delete(); The deleted_at …

laravel eloquent soft-delete
How to check if row is soft-deleted in Eloquent?

In Laravel 5.1 is there a nice way to check if an eloquent model object has been soft-deleted? I'm not talking …

php laravel eloquent laravel-5.1 soft-delete
Soft delete best practices (PHP/MySQL)

Problem In a web application dealing with products and orders, I want to maintain information and relationships between former employees (…

php mysql database-design soft-delete
How to soft delete related records when soft deleting a parent record in Laravel?

I have this invoices table that which has the following structure id | name | amount | deleted_at 2 iMac 1500 | NULL and a …

php laravel laravel-5 eloquent soft-delete
How to disable soft delete (Soft-deleteable) filter for doctrine in symfony

Installing and using SoftDeleteable behavior extension for Doctrine 2 is quite easy. The problem usually is trying to disable it for …

doctrine-orm symfony soft-delete
Listener "SoftDeleteableListener" was not added to the EventManager

I followed the this example to test softdeletable extension on my project running Symfony 2.1.0-DEV. I configured my config.yml …

doctrine-orm soft-delete symfony-2.1
Cascading Soft Delete

SQL has always had a great feature: cascading deletes. You plan it in advance and when it's time to delete …

sql soft-delete