Skip to content

Commit b68e628

Browse files
committed
Look up only sis group bindings of not deleted groups.
1 parent 2e6eb39 commit b68e628

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/model/repository/SisGroupBindings.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public function __construct(EntityManager $em) {
1616
*/
1717
public function findByCode($code) {
1818
return $this->findBy([
19-
'code' => $code
19+
'code' => $code,
20+
'group.deletedAt' => null
2021
]);
2122
}
2223

@@ -41,4 +42,4 @@ public function findByGroup(Group $group) {
4142
"group" => $group
4243
]);
4344
}
44-
}
45+
}

0 commit comments

Comments
 (0)