getAuthorizationChecker()->isGrantedAsProducer($userCurrent); $producer = null; if ($isUserCurrentGrantedAsProducer && $userCurrent->id_producer) { $producer = $producerModule->getRepository()->findOneProducerById($userCurrent->id_producer); } ?>