public function delete(PropelPDO $con = null)
 {
     $torrents = $this->getTorrents();
     foreach ($torrents as $torrent) {
         $torrent->delete($con);
     }
     return parent::delete($con);
 }
 public function delete(Doctrine_Connection $conn = null)
 {
     $is_remote = $this->getFileIsRemote();
     $audio_filename = $this->getAudioFile();
     $graphic_filename = $this->getGraphicFile();
     $nice_filename = $this->getNiceFilename();
     $bucket = $this->getSubreddit()->getBucketName();
     parent::delete($conn);
     if ($is_remote) {
         $this->deleteEpisodeFileFromAmazon($audio_filename);
     }
     if (!$is_remote && $audio_filename) {
         $this->deleteLocalFile($audio_filename);
     }
     if ($graphic_filename) {
         $this->deleteLocalFile($graphic_filename, ProjectConfiguration::getEpisodeGraphicFileLocalDirectory());
     }
 }