@@ -495,7 +495,7 @@ |
||
495 | 495 | */ |
496 | 496 | public function hasCriteriaNamed($criteriaAlias) |
497 | 497 | { |
498 | - return $this->criterias->exists(function ($key, $element) use ($criteriaAlias) { |
|
498 | + return $this->criterias->exists(function($key, $element) use ($criteriaAlias) { |
|
499 | 499 | return $criteriaAlias === $element->getName(); |
500 | 500 | }); |
501 | 501 | } |
@@ -190,7 +190,7 @@ |
||
190 | 190 | /** |
191 | 191 | * Get category. |
192 | 192 | * |
193 | - * @return string |
|
193 | + * @return Category |
|
194 | 194 | */ |
195 | 195 | public function getCategory() |
196 | 196 | { |
@@ -156,8 +156,8 @@ |
||
156 | 156 | /** |
157 | 157 | * Get PageSeo. |
158 | 158 | * |
159 | - * @param string $method leftJoin|innerJoin |
|
160 | 159 | * |
160 | + * @param string $locale |
|
161 | 161 | * @return ViewRepository |
162 | 162 | */ |
163 | 163 | public function joinTranslations($locale) |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Victoire\Bundle\CoreBundle\Repository; |
4 | 4 | |
5 | -use Doctrine\ORM\Query; |
|
6 | 5 | use Doctrine\ORM\Query\Expr; |
7 | 6 | use Gedmo\Tree\Entity\Repository\NestedTreeRepository; |
8 | 7 | use Victoire\Bundle\CoreBundle\Entity\View; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | 'class' => 'Victoire\Bundle\BlogBundle\Entity\Blog', |
27 | 27 | 'property' => 'name', |
28 | 28 | 'preferred_choices' => $options['blog'] ? [$options['blog']] : [], |
29 | - 'query_builder' => function (EntityRepository $er) use ($options) { |
|
29 | + 'query_builder' => function(EntityRepository $er) use ($options) { |
|
30 | 30 | return $er->joinTranslations($options['locale'])->getInstance(); |
31 | 31 | }, |
32 | 32 | ] |