@@ -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 | } |
@@ -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 | ] |