-
-
Notifications
You must be signed in to change notification settings - Fork 130
Fixes issue with all tags not showing when filtering by tag #269
Fixes issue with all tags not showing when filtering by tag #269
Conversation
looks ok to me ping @soullivaneuh @rande |
I don't like this because the leftJoin will be useless without the select. @liquorvicar Could you please elaborate your issue with a concrete case? |
@soullivaneuh I have updated the original issue with a concrete example (including screenshots). I see your point about the JOIN. Should I move that to where the tag criteria is checked? |
Could we have the issue link?
Don't sure to understand. If you look at the code, you will see that BTW, the |
Original issue is here: #268
I think that is exactly the issue here; because Don't think the same issue will affect the Authors as IIRC there can only be one Author by Post. |
ping @soullivaneuh @rande |
1 similar comment
ping @soullivaneuh @rande |
Have you tried a second join @liquorvicar if (isset($criteria['tag'])) {
$query
->leftJoin('p.tags', 't2', Join::WITH)
->andWhere('t2.slug LIKE :tag');
$parameters['tag'] = (string) $criteria['tag'];
} |
Ping @liquorvicar |
@core23 Sorry, I'm not working on this project at the moment (and in fact I'm not working with php either for now). Not going to have the time to clear this up but I'm not sure your suggested solution is any better. I'll ping one of my old colleagues in case they can help as they are probably still using this library (@catharsisjelly) |
According to the new Sonata version management and next major release plan, this project has been refactored regarding branching and versioning. If you see this message, your PR concerns a patch or a minor release and is not targeting the right branch. So I'm closing this one, but don't see it as a refusal. If you think your work is still relevant and want to continue, feel free to reopen it on the right branch (e.g. the default one). Regards. |
We spotted this when using the ORM backend. Not sure if the issue also exists in the other backends?
Also, not sure if this will have any other impact (e.g. performance?)