/** * Returns the news with the given Id. * * @param int $id The news' id. * * @return News Returns null if it wasn't found. */ public function getNewsById($id) { return $this->ORM->loadObjectById('News', (int) $id); }