Permalink
Browse files

fix reference in getModelOrCreate

  • Loading branch information...
1 parent 7ddbc73 commit 0525cffc115e1d84fa8f9a7e77e98c741b0368be @white-gecko white-gecko committed Nov 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Erfurt/Store.php
View
@@ -921,10 +921,10 @@ public function getModelOrCreate ($modelIri, $baseIri = '', $type = Erfurt_Store
{
try {
// Create it if it doesn't exist
- $model = $store->getNewModel($modelIri, $useAc);
+ $model = $this->getNewModel($modelIri, $useAc);
} catch (Erfurt_Store_Exception $e) {
// Get it if it already exists
- $model = $store->getModel($modelIri, $baseIri, $type, $useAc);
+ $model = $this->getModel($modelIri, $baseIri, $type, $useAc);
}
return $model;

0 comments on commit 0525cff

Please sign in to comment.