$shelf = new Bookshelf();
$this->baseRepo->create($shelf, $input);
$this->updateBooks($shelf, $bookIds);
- Activity::add($shelf, ActivityType::BOOKSHELF_CREATE);
+ Activity::addForEntity($shelf, ActivityType::BOOKSHELF_CREATE);
return $shelf;
}
$this->updateBooks($shelf, $bookIds);
}
- Activity::add($shelf, ActivityType::BOOKSHELF_UPDATE);
+ Activity::addForEntity($shelf, ActivityType::BOOKSHELF_UPDATE);
return $shelf;
}
{
$trashCan = new TrashCan();
$trashCan->softDestroyShelf($shelf);
- Activity::add($shelf, ActivityType::BOOKSHELF_DELETE);
+ Activity::addForEntity($shelf, ActivityType::BOOKSHELF_DELETE);
$trashCan->autoClearOld();
}
}