diff --git a/book/source/Chapters/4_A_Little_Blog/1_MVC/1_Models.markdown b/book/source/Chapters/4_A_Little_Blog/1_MVC/1_Models.markdown index a23bb7f..737dcf1 100644 --- a/book/source/Chapters/4_A_Little_Blog/1_MVC/1_Models.markdown +++ b/book/source/Chapters/4_A_Little_Blog/1_MVC/1_Models.markdown @@ -670,6 +670,8 @@ earlier, is a kicker method. It issues a `SELECT` appropriate to the conditions. This command would update the `allow_beer` attribute of all people aged 21 or older in the database, all in one `UPDATE` statement. +Note: ActiveRecord has a well known `Model.delete_all` class method to erase all table entries. In DataMapper to delete all instances of an Object in the database, you would do `Model.all.destroy!` + #### Aggregates DataMapper by default does not provide aggregator methods, but dm-aggregates