diff --git a/lib/Doctrine/Data/Export.php b/lib/Doctrine/Data/Export.php index 1e84a16a0..6bb1fbf7b 100644 --- a/lib/Doctrine/Data/Export.php +++ b/lib/Doctrine/Data/Export.php @@ -58,6 +58,12 @@ class Doctrine_Data_Export extends Doctrine_Data $outputAll = true; + // for situation when the $models array is empty, but the $specifiedModels array isn't + if (empty($models)) + { + $models = $specifiedModels; + } + foreach ($models AS $name) { if (!empty($specifiedModels) AND !in_array($name, $specifiedModels)) {