From 520f4a10560910d7f268e8cc7fad8ff52c299931 Mon Sep 17 00:00:00 2001 From: bschussek Date: Mon, 29 Oct 2007 19:26:22 +0000 Subject: [PATCH] fixed: old mapped values were deleted when data was hydrated into an existing record (lazy-loading) --- lib/Doctrine/Record.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index 2e333d241..d255afbd6 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -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);