Skip to content

Commit

Permalink
Merge pull request #99 from EleRam/patch-2
Browse files Browse the repository at this point in the history
Update 02_data_mutation.md
  • Loading branch information
nateabele authored Aug 2, 2018
2 parents 062a85b + 6bd87e2 commit 7e8d6f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 05_models/02_data_mutation.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ As an alternative to quickly remove massive sets of entities `remove()` together
conditions can be used. The `$conditions` parameter is first and is an array of key/value
pairs representing the scope of the records or documents to be deleted.

```
```php
// Delete all posts!!
$success = Posts::remove();

// Delete drafted posts only.
Posts::remove(['is_draft => true]);
Posts::remove(['is_draft' => true]);
```

<div class="note note-caution">
Expand Down

0 comments on commit 7e8d6f5

Please sign in to comment.