Listing: Empty trash button

This commit is contained in:
Jonathan Labreuille
2016-02-06 15:15:07 +01:00
parent bbc4acb2a4
commit 7a04eeb650
7 changed files with 51 additions and 12 deletions

View File

@ -60,7 +60,7 @@ class Model extends \Sudzy\ValidModel {
}
static function bulkDelete($orm) {
$models = $orm->findMany();
$models = $orm->findResultSet();
$count = 0;
foreach($models as $model) {
$model->delete();