Skip to content

Commit 2c7c1cd

Browse files
committed
Added method Client::exists
1 parent 0dda55c commit 2c7c1cd

File tree

3 files changed

+1231
-354
lines changed

3 files changed

+1231
-354
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,14 @@ $records = $client->findBy('model_name', $criteria = null, $options = []);
194194

195195
The method returns an array of records of type ```array<array>```.
196196

197+
**Check if a record exists by ID**
198+
199+
```php
200+
$id = 1; // Must be an integer
201+
202+
$recordExists = $client->exists('model_name', $id);
203+
```
204+
197205
**Count records by criteria**
198206

199207
```php
@@ -470,6 +478,10 @@ public function clearRecords(): Operation;
470478
Upgrades
471479
========
472480

481+
### v5.0.4
482+
483+
- Added method ```Client::exists()```.
484+
473485
### From 4.* to 5.*
474486

475487
What you have to do:

0 commit comments

Comments
 (0)