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