From 2db69f1d7fa20f6c879bc3623952082f6d2d4459 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Thu, 19 Jul 2018 13:22:44 +0200 Subject: [PATCH] fix getuser in owner service --- src/AppBundle/Service/OwnerService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppBundle/Service/OwnerService.php b/src/AppBundle/Service/OwnerService.php index 0b49959a..43b334cb 100755 --- a/src/AppBundle/Service/OwnerService.php +++ b/src/AppBundle/Service/OwnerService.php @@ -55,7 +55,7 @@ class OwnerService { $activeFestival = $user->getActiveFestival(); if ( ! $activeFestival ) { $activeFestival = $this->em->getRepository( 'AppBundle:Festival' ) - ->findOneBy( [ 'user' => $this->getUser()->getId() ], + ->findOneBy( [ 'user' => $user->getId() ], [ 'id' => 'desc' ], 0, 1 );