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:
# 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

View File

@ -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();