S0RIEN/DataGridBundle — Issue #83: column filtering doesn't work if I manipulate the query builder
Author: morferic
Created: 2012-02-24 14:05:30+00:00
State: open

Hi!
Thank you for this bundle!It's very useful.
If I manipulate the query builder, e.g.:

$tableAlias = $source::TABLE_ALIAS;
$source->setCallback($source::EVENT_PREPARE_QUERY, function ($query) use ($tableAlias, $user) {
$query->where($tableAlias . '.user = '.$user->getId());
});

column filtering doesn't work anymore!
I suppose that is because I have just set a filter for the source (the user).
What do I do to make functional the other filters (for example: first name, second name, address, city,...)?
Something with session variable?
Many thanks!

Eric