1
0
mirror of synced 2025-02-22 07:03:13 +03:00

DDC-952 - This nasty inheritance hydration bug slipped in again, fixed again now.

This commit is contained in:
Benjamin Eberlei 2011-03-15 23:39:19 +01:00
parent 6d27b4760f
commit b7e522d7a7

View File

@ -115,7 +115,9 @@ class SimpleObjectHydrator extends AbstractHydrator
->convertToPHPValue($value, $this->_platform); ->convertToPHPValue($value, $this->_platform);
} }
if (isset($cache[$column])) { // the second and part is to prevent overwrites in case of multiple
// inheritance classes using the same property name (See AbstractHydrator)
if (isset($cache[$column]) && (!isset($data[$cache[$column]['name']]) || $value !== null)) {
$data[$cache[$column]['name']] = $value; $data[$cache[$column]['name']] = $value;
} }
} }