Commit af32f801 authored by guilhermeblanco's avatar guilhermeblanco

Added a fix in toArray method to prevent mapped Doctrine_Record values to be displayed fully

parent dca3c3b7
...@@ -1251,7 +1251,16 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count ...@@ -1251,7 +1251,16 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
} }
} }
return array_merge($a, $this->_values); // [FIX] Prevent mapped Doctrine_Records from being displayed fully
foreach ($this->_values as $key => $value) {
if ($value instanceof Doctrine_Record) {
$a[$key] = $value->toArray($deep, $prefixKey);
} else {
$a[$key] = $value;
}
}
return $a;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment