Skip to content

Commit

Permalink
Resolve #140
Browse files Browse the repository at this point in the history
  • Loading branch information
famoser committed Oct 26, 2021
1 parent 0d63e4a commit e867e3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Controller/Administration/EventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ function () use ($event, $translator) {
$manager = $this->getDoctrine()->getManager();
$manager->persist($eventPast);
$manager->persist($event);
$manager->flush();

$this->displaySuccess($translator->trans('successful.delete', [], 'common_form'));

Expand Down
1 change: 1 addition & 0 deletions src/Repository/EventRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function search(SearchModel $searchModel)
$qb = $this->getEntityManager()->createQueryBuilder()
->select('e')
->from('App:Event', 'e')
->where('e.deletedAt IS NULL')
->leftJoin('e.eventTags', 'et')
->leftJoin('e.eventPast', 'ep')
->leftJoin('e.clinic', 'm')
Expand Down

0 comments on commit e867e3d

Please sign in to comment.