Commit 520f4a10 authored by bschussek's avatar bschussek

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

parent 3565dea7
...@@ -451,7 +451,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count ...@@ -451,7 +451,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
*/ */
public function hydrate(array $data) 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->_data = array_merge($this->_data, $data);
$this->prepareIdentifiers(true); $this->prepareIdentifiers(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment