Beispiel #1
0
 public function updatePost(Post $post)
 {
     if (!$post->getSlug()) {
         $post->setSlug(str_replace(' ', '-', strtolower($post->getName())));
     }
     $this->em->flush($post);
     $this->cacheService->generateCache($this);
 }