fix(manager): add doctrine fixtures

This commit is contained in:
2022-10-04 09:47:41 +02:00
parent f29fc43c8a
commit 5fa52efe9f
14 changed files with 597 additions and 13 deletions

View File

@ -72,7 +72,7 @@ class UserController extends AbstractController
->from("App\Entity\UserModo", 'usermodo')
->where('usermodo.niveau01 = entity.niveau01')
->andWhere('usermodo.user = :user')
->where('entity.isactive = :isactive')
->andwhere('entity.isactive = :isactive')
->setParameter('isactive', $isactive)
->setParameter('user', $this->getUser())
->getQuery()->getSingleScalarResult();
@ -89,7 +89,7 @@ class UserController extends AbstractController
->select('COUNT(entity)')
->from($this->entity, 'entity')
->where('entity.isvisible=true')
->where('entity.isactive = :isactive')
->andwhere('entity.isactive = :isactive')
->setParameter('isactive', $isactive);
switch ($request->getSession()->get('scopeannu')) {