Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
375f37aa
Commit
375f37aa
authored
May 27, 2021
by
Antony Le Courtes
Browse files
Ajout filtre pour retirer de la liste les intervenants avec un statut non autorisé (#35916)
parent
3a12b0f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/Application/src/Application/Service/IndicateurService.php
View file @
375f37aa
...
...
@@ -58,6 +58,9 @@ class IndicateurService extends AbstractEntityService
{
$qb
=
$this
->
getEntityManager
()
->
createQueryBuilder
();
$qb
->
from
(
\
Application\Entity\Db\Indicateur\Indicateur
::
class
.
$indicateur
->
getNumero
(),
'indicateur'
);
$qb
->
join
(
'indicateur.intervenant'
,
'intervenant'
);
$qb
->
join
(
'intervenant.statut'
,
'statut'
);
$qb
->
andWhere
(
'statut.nonAutorise = 0'
);
/* Filtrage par intervenant */
//$qb->join('indicateur.intervenant', 'intervenant');
...
...
@@ -114,7 +117,7 @@ class IndicateurService extends AbstractEntityService
{
$qb
=
$this
->
getBaseQueryBuilder
(
$indicateur
,
$structure
);
$qb
->
join
(
'indicateur.intervenant'
,
'intervenant'
);
//
$qb->join('indicateur.intervenant', 'intervenant');
$qb
->
addSelect
(
'indicateur'
);
$qb
->
addSelect
(
'partial intervenant.{id, nomUsuel, prenom, emailPerso, emailPro, code}'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment