Skip to content

Commit

Permalink
Merge pull request #36 from blyleven/master
Browse files Browse the repository at this point in the history
Add findWithSelect function
  • Loading branch information
stephangroen committed Dec 31, 2015
2 parents 5469e5a + 8add305 commit 120dbaf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Picqer/Financials/Exact/Query/Findable.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ public function find($id)
}


public function findWithSelect($id, $select = '')
{
$result = $this->connection()->get($this->url, [
'$filter' => $this->primaryKey . " eq guid'$id'",
'$select' => $select
]);

return new self($this->connection(), $result);
}


public function filter($filter, $expand = '', $select = '')
{
$request = [
Expand Down

0 comments on commit 120dbaf

Please sign in to comment.