fix recalculate on last festival if exists

This commit is contained in:
Kayn Ty 2018-04-25 17:45:18 +02:00
parent eeb38c694a
commit 6276383e1d
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,6 @@
# To get started with security, check out the documentation: # To get started with security, check out the documentation:
# https://symfony.com/doc/current/security.html # https://symfony.com/doc/current/security.html
security: security:
encoders: encoders:
FOS\UserBundle\Model\UserInterface: bcrypt FOS\UserBundle\Model\UserInterface: bcrypt
# https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded

View File

@ -54,7 +54,10 @@ class DefaultController extends Controller {
0, 0,
1 ); 1 );
} }
if($lastFestival){
$lastFestival->recalculateChiffreAffaire(); $lastFestival->recalculateChiffreAffaire();
}
$categRepo = $m->getRepository( 'AppBundle:ProductCategory' ); $categRepo = $m->getRepository( 'AppBundle:ProductCategory' );
$sellingRepo = $m->getRepository( 'AppBundle:SellRecord' ); $sellingRepo = $m->getRepository( 'AppBundle:SellRecord' );
$categories = $categRepo->findAll(); $categories = $categRepo->findAll();