diff --git a/lib/Doctrine/Migration/Builder.php b/lib/Doctrine/Migration/Builder.php index bbfb49a70..307799494 100644 --- a/lib/Doctrine/Migration/Builder.php +++ b/lib/Doctrine/Migration/Builder.php @@ -144,7 +144,7 @@ END; $result = $this->generateMigrationsFromModels($directory); - exec('rm -rf ' . $directory); + Doctrine::removeDirectories($directory); return $result; }