1
0
mirror of synced 2025-03-21 15:33:51 +03:00

fixed: old mapped values were deleted when data was hydrated into an existing record (lazy-loading)

This commit is contained in:
bschussek 2007-10-29 19:26:22 +00:00
parent 3565dea72b
commit 520f4a1056

View File

@ -451,7 +451,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
*/
public function hydrate(array $data)
{
$this->_values = $this->cleanData($data);
$this->_values = array_merge($this->_values, $this->cleanData($data));
$this->_data = array_merge($this->_data, $data);
$this->prepareIdentifiers(true);