Permalink
Browse files

Merge pull request #134 from K-Phoen/fix-fixtures-inheritance

Fix: fixtures loading with single inheritance
  • Loading branch information...
2 parents 8ec5823 + 63fb1f6 commit 478e7215716e4471571b8624a3358d84af1c7b9f @willdurand willdurand committed Apr 10, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 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;
}
}
}

0 comments on commit 478e721

Please sign in to comment.