Feat: Make some entities soft-deletable

This commit is contained in:
Björn Fromme
2023-10-20 17:17:21 +02:00
parent 168a69c103
commit d7bbb4bb29
27 changed files with 213 additions and 63 deletions
+6 -1
View File
@@ -2,13 +2,18 @@
namespace App\Entity;
use App\Entity\Traits\SoftDeletableEntity;
use App\Entity\Traits\TimestampableEntity;
use App\Repository\DestinationRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DestinationRepository::class)]
class Destination
class Destination implements TimestampableEntityInterface, SoftDeletableEntityInterface
{
use TimestampableEntity;
use SoftDeletableEntity;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]