From 6276383e1d35de57b391eaaa3024e705e4bc1ab0 Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Wed, 25 Apr 2018 17:45:18 +0200 Subject: [PATCH] fix recalculate on last festival if exists --- app/config/security.yml | 1 - src/AppBundle/Controller/DefaultController.php | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/config/security.yml b/app/config/security.yml index dfba55de..e43c3666 100755 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -1,7 +1,6 @@ # To get started with security, check out the documentation: # https://symfony.com/doc/current/security.html security: - encoders: FOS\UserBundle\Model\UserInterface: bcrypt # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php index f12c1cfd..b6227da6 100755 --- a/src/AppBundle/Controller/DefaultController.php +++ b/src/AppBundle/Controller/DefaultController.php @@ -54,7 +54,10 @@ class DefaultController extends Controller { 0, 1 ); } + if($lastFestival){ + $lastFestival->recalculateChiffreAffaire(); + } $categRepo = $m->getRepository( 'AppBundle:ProductCategory' ); $sellingRepo = $m->getRepository( 'AppBundle:SellRecord' ); $categories = $categRepo->findAll();