diff --git a/lib/addon/sfPropelData.class.php b/lib/addon/sfPropelData.class.php index a46062150..c56d86d1b 100644 --- a/lib/addon/sfPropelData.class.php +++ b/lib/addon/sfPropelData.class.php @@ -224,7 +224,9 @@ public function loadDataFromArray($data) // save the object for future reference if (method_exists($obj, 'getPrimaryKey')) { - $this->object_references[$class.'_'.$key] = $obj; + $peer = $class::PEER; + $class_key = $peer::OM_CLASS; + $this->object_references[$class_key.'_'.$key] = $obj; } } }