/**
  * Adds the given new category object to the category repository
  *
  * @param \Lelesys\Plugin\News\Domain\Model\Category $newCategory A new category to add
  * @return void
  */
 public function create(\Lelesys\Plugin\News\Domain\Model\Category $newCategory)
 {
     $newCategory->setCreateDate(new \DateTime());
     $newCategory->setUpdatedDate(new \DateTime());
     $newCategory->setHidden(0);
     $this->categoryRepository->add($newCategory);
     $this->emitCategoryCreated($newCategory);
 }