/** * Pass through to entity so it can perform extra logic if needed * most of the time... * * @param int $id * @return mixed return valid Apache code, could be an error, maybe not */ public function delete($id) { $this->entity->delete($id); }
/** * Pass through to entity so it can perform extra logic if needed * most of the time... * * @param int $id * @return mixed return valid Apache code, could be an error, maybe not */ public function delete($id) { $this->beforeDelete($id); $this->entity->delete($id); $this->afterDelete($id); }