fix recalculate on last festival if exists
This commit is contained in:
parent
eeb38c694a
commit
6276383e1d
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue