You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Hello,
I'm having an issue filtering an association that has a lot of data.
Disclaimer: i'm using an old version of the bundle and cannot update right now.
Here is my use case:
I have a Club entity with Users belonging to clubs
I want to be able to filter clubs depending on some user's properties: for example i have a user_id field which will filter to get all clubs containing the given user.
In order to do that i have to JOIN the users in the query, but then the query execution becomes slow if no data is given in the user filter
The join is added in the closure given to $qbe->addOnce
Hello,
I'm having an issue filtering an association that has a lot of data.
Disclaimer: i'm using an old version of the bundle and cannot update right now.
Here is my use case:
I have a Club entity with Users belonging to clubs
I want to be able to filter clubs depending on some user's properties: for example i have a user_id field which will filter to get all clubs containing the given user.
In order to do that i have to JOIN the users in the query, but then the query execution becomes slow if no data is given in the user filter
The join is added in the closure given to
$qbe->addOnce
What i would like is to join IF AND ONLY IF the user "sub-filter" has been filled and the join is truly required to make the filtering.
Do you think it is possible ?
Is it something that has been implemented in the latest version of the bundle ?
For now my only work-around was to use the
$_REQUEST
superglobal in my closure to check the submitted filter dataAny help or suggestion would be really appreciated
Thank you everyone for the efforts in this bundle
The text was updated successfully, but these errors were encountered: