Skip to content

Commit

Permalink
Merge pull request #350 from ossinkine/issue-350
Browse files Browse the repository at this point in the history
Fix disabling softdeletable
  • Loading branch information
Albin Kerouanton authored Jun 26, 2017
2 parents a78bc46 + fa31ec1 commit 3353041
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 3353041

Please sign in to comment.