Skip to content
Browse files

Merge pull request #144 from toaotc/master

fixed: parse error
  • Loading branch information...
2 parents 3150ae5 + 6c8e2be commit a445ead302915edcfab02da3881f7a3d341476c3 @willdurand willdurand committed Jun 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/addon/sfPropelData.class.php
View
4 lib/addon/sfPropelData.class.php
@@ -224,8 +224,8 @@ public function loadDataFromArray($data)
// save the object for future reference
if (method_exists($obj, 'getPrimaryKey'))
{
- $peer = $class::PEER;
- $class_key = $peer::OM_CLASS;
+ $peer = constant($class.'::PEER');
+ $class_key = constant($peer.'::OM_CLASS');
$this->object_references[$class_key.'_'.$key] = $obj;
}
}

0 comments on commit a445ead

Please sign in to comment.
Something went wrong with that request. Please try again.