浏览代码

Se agrega soft_delete a la config.

Maxi Schvindt 7 年之前
父节点
当前提交
7cd00f5c90
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      app/config/config.yml

+ 7 - 1
app/config/config.yml

@@ -96,7 +96,12 @@ doctrine:
         naming_strategy: doctrine.orm.naming_strategy.underscore
         auto_mapping: true
         filters:
-            tenancy_filter: Base\AdminBundle\Filter\TenancyFilter
+            soft_deleteable:
+              class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
+              enabled: true
+            tenancy_filter:
+              class: Base\AdminBundle\Filter\TenancyFilter
+              enabled: true
 
 # Swiftmailer Configuration
 swiftmailer:
@@ -130,3 +135,4 @@ stof_doctrine_extensions:
     orm:
         default:
             timestampable: true
+            softdeleteable: true