Created
June 1, 2017 10:21
-
-
Save rileyrg/3dfe9ce86deaf06398c3d911f60332c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($request->query->has($personForm->getName())) { | |
if (!$personForm->get('reset')->isClicked()) { | |
$personForm->submit($request->query->get($personForm->getName())); | |
}else{ | |
$request->query->remove($request->query->get($personForm->getName())); | |
} | |
$qb_updater = $this->get('lexik_form_filter.query_builder_updater'); | |
// tell the query updater about the joins on the queryBuilder using setparts. no need for add_shared in the FilterType | |
$qb_updater->setParts(array( | |
'__root__' => 'p', | |
'p.adressData' => 'a', | |
'p.adminAdressData' => 'aa', | |
'p.eyeColor' => 'e' | |
)); | |
$qb_updater->addFilterConditions($personForm, $queryB); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment