Skip to content
This repository
Browse code

Merge pull request #144 from toaotc/master

fixed: parse error
  • Loading branch information...
commit a445ead302915edcfab02da3881f7a3d341476c3 2 parents 3150ae5 + 6c8e2be
William Durand willdurand authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/addon/sfPropelData.class.php
4 lib/addon/sfPropelData.class.php
@@ -224,8 +224,8 @@ public function loadDataFromArray($data)
224 224 // save the object for future reference
225 225 if (method_exists($obj, 'getPrimaryKey'))
226 226 {
227   - $peer = $class::PEER;
228   - $class_key = $peer::OM_CLASS;
  227 + $peer = constant($class.'::PEER');
  228 + $class_key = constant($peer.'::OM_CLASS');
229 229 $this->object_references[$class_key.'_'.$key] = $obj;
230 230 }
231 231 }

0 comments on commit a445ead

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