Added a fix in toArray method to prevent mapped Doctrine_Record values to be displayed fully
This commit is contained in:
parent
dca3c3b701
commit
af32f80176
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user