public function updateStatus() { if ($this->getStatus() == entryStatus::READY) { return; } if ($this->getPlaylistId() || LiveChannelSegmentPeer::countByChannelId($this->getId())) { $this->setStatus(entryStatus::READY); } else { $this->setStatus(entryStatus::NO_CONTENT); } }