Skip to content

Commit

Permalink
Merge pull request #134 from K-Phoen/fix-fixtures-inheritance
Browse files Browse the repository at this point in the history
Fix: fixtures loading with single inheritance
  • Loading branch information
willdurand committed Apr 10, 2012
2 parents 8ec5823 + 63fb1f6 commit 478e721
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/addon/sfPropelData.class.php
Expand Up @@ -224,7 +224,9 @@ public function loadDataFromArray($data)
// save the object for future reference // save the object for future reference
if (method_exists($obj, 'getPrimaryKey')) 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;
} }
} }
} }
Expand Down

0 comments on commit 478e721

Please sign in to comment.