cleanup for 1.10 (#1906)

This commit is contained in:
Kevin Papst
2020-08-22 19:15:54 +02:00
committed by GitHub
parent 064d083db6
commit c2c4f087e4
26 changed files with 66 additions and 13 deletions

View File

@@ -14,6 +14,9 @@ use App\Entity\ActivityRate;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\ORMException;
/**
* @extends \Doctrine\ORM\EntityRepository<ActivityRate>
*/
class ActivityRateRepository extends EntityRepository
{
public function saveRate(ActivityRate $rate)

View File

@@ -25,6 +25,9 @@ use Doctrine\ORM\Query;
use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Pagerfanta;
/**
* @extends \Doctrine\ORM\EntityRepository<Activity>
*/
class ActivityRepository extends EntityRepository
{
/**

View File

@@ -15,6 +15,9 @@ use App\Form\Model\SystemConfiguration;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\ORMException;
/**
* @extends \Doctrine\ORM\EntityRepository<Configuration>
*/
class ConfigurationRepository extends EntityRepository implements ConfigLoaderInterface
{
private static $cacheByPrefix = null;

View File

@@ -14,6 +14,9 @@ use App\Entity\CustomerRate;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\ORMException;
/**
* @extends \Doctrine\ORM\EntityRepository<CustomerRate>
*/
class CustomerRateRepository extends EntityRepository
{
public function saveRate(CustomerRate $rate)

View File

@@ -27,6 +27,9 @@ use Doctrine\ORM\Query;
use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Pagerfanta;
/**
* @extends \Doctrine\ORM\EntityRepository<Customer>
*/
class CustomerRepository extends EntityRepository
{
/**

View File

@@ -20,6 +20,9 @@ use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Pagerfanta;
/**
* @extends \Doctrine\ORM\EntityRepository<Invoice>
*/
class InvoiceRepository extends EntityRepository
{
public function saveInvoice(Invoice $invoice)

View File

@@ -16,6 +16,9 @@ use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Adapter\DoctrineORMAdapter;
use Pagerfanta\Pagerfanta;
/**
* @extends \Doctrine\ORM\EntityRepository<InvoiceTemplate>
*/
class InvoiceTemplateRepository extends EntityRepository
{
public function hasTemplate(): bool

View File

@@ -14,6 +14,9 @@ use App\Entity\ProjectRate;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\ORMException;
/**
* @extends \Doctrine\ORM\EntityRepository<ProjectRate>
*/
class ProjectRateRepository extends EntityRepository
{
public function saveRate(ProjectRate $rate)

View File

@@ -26,6 +26,9 @@ use Doctrine\ORM\Query;
use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Pagerfanta;
/**
* @extends \Doctrine\ORM\EntityRepository<Project>
*/
class ProjectRepository extends EntityRepository
{
/**

View File

@@ -14,6 +14,9 @@ use App\Entity\RolePermission;
use Doctrine\ORM\AbstractQuery;
use Doctrine\ORM\EntityRepository;
/**
* @extends \Doctrine\ORM\EntityRepository<RolePermission>
*/
class RolePermissionRepository extends EntityRepository
{
public function saveRolePermission(RolePermission $permission)

View File

@@ -14,6 +14,7 @@ use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\ORMException;
/**
* @extends \Doctrine\ORM\EntityRepository<Role>
* @method Role[] findAll()
*/
class RoleRepository extends EntityRepository

View File

@@ -18,6 +18,9 @@ use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Adapter\DoctrineORMAdapter;
use Pagerfanta\Pagerfanta;
/**
* @extends \Doctrine\ORM\EntityRepository<Tag>
*/
class TagRepository extends EntityRepository
{
/**

View File

@@ -21,6 +21,9 @@ use Doctrine\ORM\ORMException;
use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Pagerfanta;
/**
* @extends \Doctrine\ORM\EntityRepository<Team>
*/
class TeamRepository extends EntityRepository
{
public function find($id, $lockMode = null, $lockVersion = null)

View File

@@ -28,6 +28,9 @@ use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Pagerfanta;
/**
* @extends \Doctrine\ORM\EntityRepository<Timesheet>
*/
class TimesheetRepository extends EntityRepository
{
public const STATS_QUERY_DURATION = 'duration';

View File

@@ -24,6 +24,9 @@ use Pagerfanta\Adapter\DoctrineORMAdapter;
use Pagerfanta\Pagerfanta;
use Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface;
/**
* @extends \Doctrine\ORM\EntityRepository<User>
*/
class UserRepository extends EntityRepository implements UserLoaderInterface
{
public function getById($id): ?User