Skip to content

Commit

Permalink
Removed the use of CLASS_DEFAULT constant
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Mar 3, 2012
1 parent c666ae7 commit 3397d74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DataFixtures/Loader/AbstractDataLoader.php
Expand Up @@ -194,8 +194,7 @@ protected function loadDataFromArray($data = null)

// save the object for future reference
if (method_exists($obj, 'getPrimaryKey')) {
$class_default = constant(constant($class.'::PEER').'::CLASS_DEFAULT');
$this->object_references[Propel::importClass($class_default).'_'.$key] = $obj;
$this->object_references[$class.'_'.$key] = $obj;
}
}
}
Expand Down

0 comments on commit 3397d74

Please sign in to comment.