Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
SimpleObjectHydrator produces wrong values with inheritance table and simple array type #5989
I am getting empty array instead of array with some values, since SimpleObjectHydrator converts the value with convertToPHPValue
line 129 $value = $type->convertToPHPValue($value, $this->_platform);
this doesent play well with the null check below
since arrayType->convertToPHPValue returns  when null, resulting in a leak from the wrong left joined table.
solution is easy, dont use the converted value in the if, but instead a raw value.
eg line 125 + $rawValue = $value;
sorry I don't have time to write a pr with tests
SimpleObjectHydrator is the file with the problem, type is ok imo. Same
On Aug 24, 2016 8:23 PM, "Marco Pivetta" email@example.com wrote: