Browse Source

Flush after setting autoUpdated

Beau Simensen 13 years ago
parent
commit
07218fa0f8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Packagist/WebBundle/Controller/WebController.php

+ 1 - 0
src/Packagist/WebBundle/Controller/WebController.php

@@ -282,6 +282,7 @@ class WebController extends Controller
         if ($package->getMaintainers()->contains($user)) {
             if (null !== $autoUpdated) {
                 $package->setAutoUpdated((Boolean) $autoUpdated);
+                $doctrine->getEntityManager()->flush();
             }
 
             if ($update) {