Skip to content

Commit

Permalink
Add cascadeDelete option documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Gama committed Oct 11, 2016
1 parent bc55d7d commit ddf4268
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ var Author = bookshelf.Model.extend({
});
```

It's possible to disable the cascade delete operations with the `cascadeDelete` option:

```js
model.destroy({ cascadeDelete: false });
```

**NOTE:** This plugin extends the `destroy` method of Bookshelf's `Model`, so if you are extending or overriding it on your models make sure to call its prototype after your work is done:

```js
Expand Down

0 comments on commit ddf4268

Please sign in to comment.