diff --git a/05_models/02_data_mutation.md b/05_models/02_data_mutation.md index a514ee6..b1e5661 100644 --- a/05_models/02_data_mutation.md +++ b/05_models/02_data_mutation.md @@ -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]); ```