Skip to content

Commit

Permalink
[docs] Typos in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
intellent committed Apr 7, 2020
1 parent 8c85b2b commit 2de675d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ echo $enrollment['id']; // Holds the resulting ID on success.
### Generic requests

If you do not find a suitable method of a given repository, you may use the more
generic methods `queryCollection($params = [])` and `querySingle(int $id, array $params = [])`.
generic methods `fetchCollection($params = [])` and `fetchSingle(int $id, array $params = [])`.

E.g. `$client->event->findUpcoming()` equals

```php
$client->event->queryCollection([
$client->event->fetchCollection([
'ordering' => 'first_day',
'first_day__gte' => date('Y-m-d'),
]);
Expand All @@ -196,7 +196,7 @@ $client->event->queryCollection([
You can even call any endpoint you like, even the ones without an actual repository:

```php
$client->getRestClient()->queryCollection('events', [
$client->getRestClient()->fetchCollection('events', [
'ordering' => 'first_day',
'first_day__gte' => date('Y-m-d'),
]);
Expand Down

0 comments on commit 2de675d

Please sign in to comment.