[export] Fixed: the scope aggregator (accompanying course) group by

period's scope (and the label didn't show this)

+ extract ScopeRepository and create ScopeRepositoryInterface
This commit is contained in:
2022-10-05 14:46:03 +02:00
parent 307ed4fb1b
commit 491570a21c
4 changed files with 35 additions and 5 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Chill\MainBundle\Repository;
use Chill\MainBundle\Entity\Scope;
use Doctrine\ORM\QueryBuilder;
use Doctrine\Persistence\ObjectRepository;
interface ScopeRepositoryInterface extends ObjectRepository
{
public function createQueryBuilder($alias, $indexBy = null): QueryBuilder;
public function find($id, $lockMode = null, $lockVersion = null): ?Scope;
/**
* @return Scope[]
*/
public function findAll(): array;
/**
* @return Scope[]
*/
public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null): array;
public function findOneBy(array $criteria, ?array $orderBy = null): ?Scope;
public function getClassName(): string;
}