Diferencia entre revisiones de «Instalar y configurar SoftDeleteable en Symfony»

De Wiki Proyectos Beta
Ir a la navegación Ir a la búsqueda
(feat: add Instalar y configurar SoftDeleteable en Symfony)
 
Línea 13: Línea 13:
  doctrine:
  doctrine:
     orm:
     orm:
        entity_managers:
      filters:
            default:
        softdeleteable:
                filters:
            class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
                    softdeleteable:
            enabled: true
                        class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
                        enabled: true


=== Stof doctrine extensions ===
=== Stof doctrine extensions ===

Revisión del 06:56 1 sep 2024

Instalar

 composer require stof/doctrine-extensions-bundle

Configurar

Doctrine

Entramos en el archivo config/packages/doctrine.yaml

Agregamos lo siguiente:

doctrine:
   orm:
      filters:
        softdeleteable:
            class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
            enabled: true

Stof doctrine extensions