title: Config entries for DoctrineExtensions SoftDeleteable: gedmo/doctrine-extensions
body: <p>I'm trying to use <code>softdelete</code> option of <a href="https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/softdeleteable.md" rel="nofollow noreferrer">gedmo/doctrine-extensions</a> but for some reason when I call <code>romove()</code>, the record in database gets removed instead of updating <code>deletedAt</code> field.</p>
  
  <p>In <a href="https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/softdeleteable.md#setup-and-autoloading" rel="nofollow noreferrer">here</a>, doc tells us to update config with:</p>
  
  <blockquote>
    <p>$config->addFilter('soft-deleteable',
    'Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter');</p>
  </blockquote>
  
  <p>This is just one of the examples I tried:</p>
  
  <pre><code># app/config/config.yml
  doctrine:
      orm:
          entity_managers:
              default:
                  filters:
                      softdeleteable:
                          class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
                          enabled: true
  </code></pre>
  
  <p>References (just a few of them):</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/10056661/doctrineextensions-softdeleteable">DoctrineExtensions SoftDeleteable</a></li>
  <li><a href="http://knplabs.com/en/blog/gedmo-doctrine-extensions-on-symfony2" rel="nofollow noreferrer">http://knplabs.com/en/blog/gedmo-doctrine-extensions-on-symfony2</a></li>
  <li><a href="https://stackoverflow.com/questions/10374449/cant-enable-softdeleteable-in-symfony2-unrecognized-options-filters">Can&#39;t enable SoftDeleteable in Symfony2 - Unrecognized options &quot;filters&quot;</a></li>
  </ul>
  
  <p>So the question in simple terms, how do I configure it in config.yml?</p>
  
  <p><strong>CONTROLLER</strong></p>
  
  <pre><code>public function delete($id)
  {
      $profile = $this-&gt;profileRepository-&gt;findOneBy(['id' =&gt; $id]);
  
      if (!$profile instanceof Profile) {
          throw new ........
      }
  
      $this-&gt;entityManager-&gt;remove($profile);
      $this-&gt;entityManager-&gt;flush();
  
      return true;
  }
  </code></pre>
  
  <p><strong>ENTITY</strong></p>
  
  <pre><code>use Gedmo\Mapping\Annotation as Gedmo;
  
  /**
   * @ORM\Entity()
   * @ORM\Table(name="profile")
   * @Gedmo\SoftDeleteable(fieldName="deletedAt")
   */
  class Profile
  {
      /**
       * @ORM\Column(name="deletedAt", type="datetime", nullable=true)
       */
      private $deletedAt;
      ......
  }
  </code></pre>
  
  <p><strong>COMPOSER.JSON</strong></p>
  
  <pre><code>"require": {
      "symfony/symfony": "2.6.*",
      "doctrine/orm": "~2.2,&gt;=2.2.3",
      "doctrine/doctrine-bundle": "~1.2",
      "gedmo/doctrine-extensions": "2.3.*@dev",
      ......
  },
  </code></pre>
  
  <p><strong>CONFIG.YML</strong></p>
  
  <pre><code>doctrine:
      dbal:
        default_connection: front
        connections:
          front:
            driver:   %database_driver%
            host:     %database_host%
            ........
          back:
            driver:   %database_driver%
            host:     %database_host%
            ........
  
  
      orm:
          auto_generate_proxy_classes: %kernel.debug%
          default_entity_manager:      front
  
          entity_managers:
              front:
                  connection:       front
                  mappings:
                      MyWebsiteBundle:
                          dir:      Entity
                      FOSUserBundle: ~
  
              back:
                  connection:       back
  </code></pre>
  
  <p><strong>MAPPING INFO:</strong></p>
  
  <pre><code>inanzzz@inanzzz:/var/www/html/local$ php app/console doctrine:mapping:info
  Found 8 mapped entities:
  [OK]   My\Bundle\Entity\AbstractMerchantProfile
  [OK]   My\Bundle\Entity\AbstractIntegration
  [OK]   My\Bundle\Entity\APIConsumer
  [OK]   My\Bundle\WebsiteBundle\Entity\User
  [OK]   My\Bundle\WebsiteBundle\Entity\Profile
  [OK]   My\Bundle\WebsiteBundle\Entity\Integration
  [OK]   FOS\UserBundle\Model\Group
  [OK]   FOS\UserBundle\Model\User
  </code></pre>