Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-mlc
kohinos
Commits
369793d7
Commit
369793d7
authored
Apr 15, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't return disabled adherents
parent
ab46fc60
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
AdherentRepository.php
src/Repository/AdherentRepository.php
+2
-2
No files found.
src/Repository/AdherentRepository.php
View file @
369793d7
...
@@ -46,7 +46,7 @@ class AdherentRepository extends ServiceEntityRepository
...
@@ -46,7 +46,7 @@ class AdherentRepository extends ServiceEntityRepository
$qb
=
$this
->
createQueryBuilder
(
'p'
);
$qb
=
$this
->
createQueryBuilder
(
'p'
);
return
$qb
return
$qb
->
leftjoin
(
'p.user'
,
'u'
)
->
leftjoin
(
'p.user'
,
'u'
)
->
where
(
'
p
.enabled = :enabled'
)
->
where
(
'
u
.enabled = :enabled'
)
->
setParameter
(
'enabled'
,
true
)
->
setParameter
(
'enabled'
,
true
)
->
orderBy
(
'u.lastname'
,
'ASC'
)
->
orderBy
(
'u.lastname'
,
'ASC'
)
->
getQuery
()
->
getQuery
()
...
@@ -63,7 +63,7 @@ class AdherentRepository extends ServiceEntityRepository
...
@@ -63,7 +63,7 @@ class AdherentRepository extends ServiceEntityRepository
return
$qb
return
$qb
->
leftjoin
(
'p.user'
,
'u'
)
->
leftjoin
(
'p.user'
,
'u'
)
->
where
(
'p.id != :presta'
)
->
where
(
'p.id != :presta'
)
->
andWhere
(
'
p
.enabled = :enabled'
)
->
andWhere
(
'
u
.enabled = :enabled'
)
->
setParameter
(
'presta'
,
$adherent
->
getId
())
->
setParameter
(
'presta'
,
$adherent
->
getId
())
->
setParameter
(
'enabled'
,
true
)
->
setParameter
(
'enabled'
,
true
)
->
orderBy
(
'u.lastname'
,
'ASC'
)
->
orderBy
(
'u.lastname'
,
'ASC'
)
...
...
Write
Preview
Markdown
is supported
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