Skip to content

Commit

Permalink
Fix disabling softdeletable
Browse files Browse the repository at this point in the history
  • Loading branch information
ossinkine committed May 15, 2017
1 parent a52f2de commit fa31ec1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Bundle/DependencyInjection/DoctrineBehaviorsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public function load(array $configs, ContainerBuilder $container)
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);

// Don't rename in Configuration for BC reasons
$config['softdeletable'] = $config['soft_deletable'];
unset($config['soft_deletable']);

foreach ($config as $behavior => $enabled) {
if (!$enabled) {
$container->removeDefinition(sprintf('knp.doctrine_behaviors.%s_subscriber', $behavior));
Expand Down

0 comments on commit fa31ec1

Please sign in to comment.