@@ 156-161 (lines=6) @@ | ||
153 | ||
154 | $entity = $this->updateUrl($entity, $em); |
|
155 | ||
156 | if ($entity !== false) { |
|
157 | $em->persist($entity); |
|
158 | $em->getUnitOfWork()->recomputeSingleEntityChangeSet($class, $entity); |
|
159 | ||
160 | $this->updateNodeChildren($entity, $em, $class); |
|
161 | } |
|
162 | } |
|
163 | } |
|
164 | } catch (MappingException $e) { |
|
@@ 186-191 (lines=6) @@ | ||
183 | if ($translation) { |
|
184 | $translation = $this->updateUrl($translation, $em); |
|
185 | ||
186 | if ($translation !== false) { |
|
187 | $em->persist($translation); |
|
188 | $em->getUnitOfWork()->recomputeSingleEntityChangeSet($class, $translation); |
|
189 | ||
190 | $this->updateNodeChildren($translation, $em, $class); |
|
191 | } |
|
192 | } |
|
193 | } |
|
194 | } |