private function insertTestNews($TestNews) { $this->app['orm.em']->persist($TestNews); $this->app['orm.em']->flush(); }