function deleteAll() { if (!$this->loaded) { $this->load(); } parent::deleteAll(); $this->saveAll(); }