filterByDbPodcastId($this->getDbId())->findOne(); $stationPodcast = StationPodcastQuery::create()->filterByDbPodcastId($this->getDbId())->findOne(); if (!is_null($importedPodcast)) { $importedPodcastArray = $importedPodcast->toArray(BasePeer::TYPE_FIELDNAME); //unset these values because we already have the podcast id in $podcastArray //and we don't need the imported podcast ID unset($importedPodcastArray["id"]); unset($importedPodcastArray["podcast_id"]); return array_merge($podcastArray, $importedPodcastArray); } else if (!is_null($stationPodcast)) { // For now just return $podcastArray because StationPodcast objects do not have any // extra fields we want to return right now. This may change in the future. return $podcastArray; } else { return $podcastArray; } } }