public function getSunset($format = 'Y-m-d H:i:s') { $sunset = parent::getSunset($format); if (!is_null($sunset)) { return $sunset; } $entry = entryPeer::retrieveByPKNoFilter($this->getEntryId()); if (!$entry) { return null; } return $entry->getEndDate($format); }
public function getSunset($format = 'Y-m-d H:i:s') { $sunset = parent::getSunset($format); if (!is_null($sunset)) { return $sunset; } $entry = $this->getEntry(); if (!$entry) { return null; } return $entry->getEndDate($format); }