@@ 164-169 (lines=6) @@ | ||
161 | ||
162 | $entity = $this->updateUrl($entity, $em); |
|
163 | ||
164 | if ($entity !== false) { |
|
165 | $em->persist($entity); |
|
166 | $em->getUnitOfWork()->recomputeSingleEntityChangeSet($class, $entity); |
|
167 | ||
168 | $this->updateNodeChildren($entity, $em, $class); |
|
169 | } |
|
170 | } |
|
171 | } |
|
172 | } catch (MappingException $e) { |
|
@@ 194-199 (lines=6) @@ | ||
191 | if ($translation) { |
|
192 | $translation = $this->updateUrl($translation, $em); |
|
193 | ||
194 | if ($translation !== false) { |
|
195 | $em->persist($translation); |
|
196 | $em->getUnitOfWork()->recomputeSingleEntityChangeSet($class, $translation); |
|
197 | ||
198 | $this->updateNodeChildren($translation, $em, $class); |
|
199 | } |
|
200 | } |
|
201 | } |
|
202 | } |