Skip to content

Commit

Permalink
Merge pull request #83 from digiwise/master
Browse files Browse the repository at this point in the history
Application loadByGUID handles payroll entities
  • Loading branch information
calcinai committed Aug 24, 2015
2 parents 87d6b38 + 68c8865 commit e09ef70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/XeroPHP/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ public function loadByGUID($model, $guid) {
$class = $this->validateModelClass($model);

$uri = sprintf('%s/%s', $class::getResourceURI(), $guid);
$api = $class::getAPIStem();

$url = new URL($this, $uri);
$url = new URL($this, $uri, $api);
$request = new Request($this, $url, Request::METHOD_GET);
$request->send();

Expand Down Expand Up @@ -305,4 +306,4 @@ public function delete(Object $object) {

}

}
}

0 comments on commit e09ef70

Please sign in to comment.