incompass/soft-deletable-bundle

Adds simple soft deletes to Doctrine Entities

Installs: 41 325

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 9

Forks: 0

Type:symfony-bundle

v3.0.0 2023-01-20 19:46 UTC

This package is auto-updated.

Last update: 2023-09-20 21:18:02 UTC


README

Build Status Total Downloads Latest Stable Version

SoftDeletableBundle

This bundle allows you to simply add implements SoftDeleteInterface and use SoftDeleteTrait to a doctrine entity class to enable soft deletes.

Installation

Composer

composer require incompass/soft-deletable-bundle

Usage

Implement the SoftDeleteInterface.

class Entity implements SoftDeleteInterface {}

Add the SoftDeleteTrait trait to your doctrine entities.

use SoftDeleteTrait

Update your database schema

php bin/console doctrine:schema:update --force

Entities will now store a deleted_at date time when they are soft deleted.

Contributors

Joe Mizzi (casechek/incompass) Mike Bates (casechek/incompass)