| @@ 85-92 (lines=8) @@ | ||
| 82 | return new self($this->connection(), $result); |
|
| 83 | } |
|
| 84 | ||
| 85 | public function findWithSelect($select = '') |
|
| 86 | { |
|
| 87 | $result = $this->connection()->get($this->url, [ |
|
| 88 | '$select' => $select |
|
| 89 | ]); |
|
| 90 | ||
| 91 | return new self($this->connection(), $result); |
|
| 92 | } |
|
| 93 | } |
|
| @@ 31-40 (lines=10) @@ | ||
| 28 | return new self($this->connection(), $result); |
|
| 29 | } |
|
| 30 | ||
| 31 | public function findWithSelect($id, $select = '') |
|
| 32 | { |
|
| 33 | //eg: $oAccounts->findWithSelect('5b7f4515-b7a0-4839-ac69-574968677d96', 'Code, Name'); |
|
| 34 | $result = $this->connection()->get($this->url, [ |
|
| 35 | '$filter' => $this->primaryKey . " eq guid'$id'", |
|
| 36 | '$select' => $select |
|
| 37 | ]); |
|
| 38 | ||
| 39 | return new self($this->connection(), $result); |
|
| 40 | } |
|
| 41 | ||
| 42 | ||
| 43 | /** |
|