public function delete(Doctrine_Connection $conn = null) { parent::delete($conn); $path = $this->getChartPath('system'); if (file_exists($path)) { $fs = new sfFilesystem(new sfEventDispatcher()); $fs->remove($path); } }