public function deleteObject() { // Remove file itself if (file_exists(DIR_BASE . $this->getImage())) { unlink(DIR_BASE . $this->getImage()); } parent::deleteObject(); }
public function deleteObject() { // Remove file itself $path = $this->getPath(); if (file_exists(DIR_BASE . $path)) { unlink(DIR_BASE . $path); } parent::deleteObject(); }