public function delete() { // Delete psychical file if (file_exists($this->getLocalFile())) { unlink($this->getLocalFile()); } parent::delete(); }