/** * Saves the given News. * * @param News $News */ public function saveNews(News $News) { if ($News->getAppKey() === '') { $News->setAppKey($this->getContext()); } $this->ORM->saveObject($News); }