Symfony: SoftDeleteable behavior extension for Doctrine 2

SoftDeleteable behavior allows to soft delete objects, filtering them at SELECT time by marking them as with a timestamp, but not explicitly removing them from the database. This is part of the Doctrine Gedmo Extension.

Gedmo SoftDeletable Doctrine Entities with Unique Index Columns:

http://intelligentbee.com/blog/2015/01/09/symfony2-gedmo-softdeletable-doctrine-entities-with-unique-index-columns/