fix getuser in owner service

This commit is contained in:
Baptiste Lemoine 2018-07-19 13:22:44 +02:00
parent e9ef1dcef3
commit 2db69f1d7f

View File

@ -55,7 +55,7 @@ class OwnerService {
$activeFestival = $user->getActiveFestival(); $activeFestival = $user->getActiveFestival();
if ( ! $activeFestival ) { if ( ! $activeFestival ) {
$activeFestival = $this->em->getRepository( 'AppBundle:Festival' ) $activeFestival = $this->em->getRepository( 'AppBundle:Festival' )
->findOneBy( [ 'user' => $this->getUser()->getId() ], ->findOneBy( [ 'user' => $user->getId() ],
[ 'id' => 'desc' ], [ 'id' => 'desc' ],
0, 0,
1 ); 1 );