diff --git a/lib/Doctrine/Parser/Yml.php b/lib/Doctrine/Parser/Yml.php index 8ecccc85d..4746913fd 100644 --- a/lib/Doctrine/Parser/Yml.php +++ b/lib/Doctrine/Parser/Yml.php @@ -66,9 +66,13 @@ class Doctrine_Parser_Yml extends Doctrine_Parser */ public function loadData($path) { + ob_start(); + $retval = include($path); + $contents = ob_get_clean(); + $spyc = new DoctrineSpyc(); - $array = $spyc->load($path); + $array = $spyc->load($contents); return $array; }