@@ 65-72 (lines=8) @@ | ||
62 | ||
63 | $tags = $post->getTags(); |
|
64 | ||
65 | foreach ($tags as $tag) { |
|
66 | $tag->setLocale($paramFetcher->get('locale')); |
|
67 | $em->refresh($tag); |
|
68 | ||
69 | if ($tag->getTranslations()) { |
|
70 | $tag->unsetTranslations(); |
|
71 | } |
|
72 | } |
|
73 | ||
74 | $postsTranslated[] = $post; |
|
75 | } |
|
@@ 173-180 (lines=8) @@ | ||
170 | ||
171 | $tags = $post->getTags(); |
|
172 | ||
173 | foreach ($tags as $tag) { |
|
174 | $tag->setLocale($paramFetcher->get('locale')); |
|
175 | $em->refresh($tag); |
|
176 | ||
177 | if ($tag->getTranslations()) { |
|
178 | $tag->unsetTranslations(); |
|
179 | } |
|
180 | } |
|
181 | ||
182 | return $post; |
|
183 | } |
@@ 54-63 (lines=10) @@ | ||
51 | ||
52 | $performancesTranslated = array(); |
|
53 | ||
54 | foreach ($performances as $performance) { |
|
55 | $performance->setLocale($paramFetcher->get('locale')); |
|
56 | $em->refresh($performance); |
|
57 | ||
58 | if ($performance->getTranslations()) { |
|
59 | $performance->unsetTranslations(); |
|
60 | } |
|
61 | ||
62 | $performancesTranslated[] = $performance; |
|
63 | } |
|
64 | ||
65 | $performances = $performancesTranslated; |
|
66 | ||
@@ 263-270 (lines=8) @@ | ||
260 | $performanceEvents = $performance->getPerformanceEvents(); |
|
261 | $performanceEventsTrans = []; |
|
262 | ||
263 | foreach ($performanceEvents as $performanceEvent) { |
|
264 | $performanceEvent->setLocale($paramFetcher->get('locale')); |
|
265 | $em->refresh($performanceEvent); |
|
266 | if ($performanceEvent->getTranslations()) { |
|
267 | $performanceEvent->unsetTranslations(); |
|
268 | } |
|
269 | $performanceEventsTrans[] = $performanceEvent; |
|
270 | } |
|
271 | $performanceEvents = $performanceEventsTrans; |
|
272 | ||
273 | return $performanceEvents; |
@@ 72-81 (lines=10) @@ | ||
69 | $em = $this->getDoctrine()->getManager(); |
|
70 | $performancesTranslated = []; |
|
71 | ||
72 | foreach ($performances as $performance) { |
|
73 | $performance->setLocale($paramFetcher->get('locale')); |
|
74 | $em->refresh($performance); |
|
75 | ||
76 | if ($performance->getTranslations()) { |
|
77 | $performance->unsetTranslations(); |
|
78 | } |
|
79 | ||
80 | $performancesTranslated[] = $performance; |
|
81 | } |
|
82 | ||
83 | return $performancesTranslated; |
|
84 | } |