Permalink
Browse files

force `constant()` for `$peer` and `$class_key`

  • Loading branch information...
1 parent b174232 commit 6c8e2be3fb7be932f90c46846cc62ff87960bda9 @toaotc toaotc committed Jun 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 6c8e2be

Please sign in to comment.