|
@@ -27,7 +27,7 @@ discard block |
|
|
block discarded – undo |
|
27
|
27
|
$route = $articleEvent->getArticle()->getRoute(); |
|
28
|
28
|
$alreadyAttachedRoute = $this->routeRepository->findOneBy(['content' => $article]); |
|
29
|
29
|
|
|
30
|
|
- if($route && !$alreadyAttachedRoute && RouteInterface::TYPE_CONTENT === $route->getType()) { |
|
|
30
|
+ if ($route && !$alreadyAttachedRoute && RouteInterface::TYPE_CONTENT === $route->getType()) { |
|
31
|
31
|
$route->setContent($article); |
|
32
|
32
|
$this->routeRepository->persist($route); |
|
33
|
33
|
$this->routeRepository->flush(); |
|
@@ -40,7 +40,7 @@ discard block |
|
|
block discarded – undo |
|
40
|
40
|
|
|
41
|
41
|
$route = $articleEvent->getArticle()->getRoute(); |
|
42
|
42
|
|
|
43
|
|
- if($route && RouteInterface::TYPE_CONTENT === $route->getType()) { |
|
|
43
|
+ if ($route && RouteInterface::TYPE_CONTENT === $route->getType()) { |
|
44
|
44
|
$route->setContent(null); |
|
45
|
45
|
$this->routeRepository->persist($route); |
|
46
|
46
|
$this->routeRepository->flush(); |
Please login to merge, or discard this patch.