/** * enables trash */ protected function beforeDelete() { if (!empty($this->__enable_trash)) { \Dsc\Mongo\Collections\Trash::trash($this); } parent::beforeDelete(); }
/** * enables trash */ protected function beforeDelete() { if (!empty($this->__enable_trash)) { \Dsc\Mongo\Collections\Trash::trash($this); } parent::beforeDelete(); }