move queries in repository

This commit is contained in:
2019-05-02 15:10:16 +02:00
parent c2b5e0f767
commit 55afcc2184
7 changed files with 120 additions and 38 deletions

View File

@@ -166,7 +166,7 @@ class PickEventType extends AbstractType
*/
protected function filterCenters(Options $options)
{
// option role
if ($options['role'] === NULL) {
$centers = array_map(
function (GroupCenter $g) {
@@ -181,6 +181,7 @@ class PickEventType extends AbstractType
);
}
// option center
if ($options['centers'] === NULL)
{
// we select all selected centers