FOSUserBundle:Security:login
, добавив туда функциональность редиректа 'query_builder' => function (EntityRepository $er) use ($options) {
if ($options['groupCategory'] == 3) {
return $er->createQueryBuilder('x');
}
return $er->createQueryBuilder('x')
->innerJoin('x.item', 'i')
->innerJoin('i.category', 'c')
->innerJoin('c.parentCategory', 'h')
->andWhere('h.categoryGroup = :groupCategory')
->setParameter(
'groupCategory',
$options['groupCategory']
);
}
... AND post_type = 'lyrics' AND wc_term_taxonomy.term_taxonomy_id = wc_term_relationships.term_taxonomy_id);