Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions config/services/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ services:
class: CleverAge\UiProcessBundle\Repository\ProcessScheduleRepository
public: false
arguments:
- '@doctrine'

- '@doctrine.orm.entity_manager'
12 changes: 6 additions & 6 deletions src/Repository/ProcessScheduleRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
namespace CleverAge\UiProcessBundle\Repository;

use CleverAge\UiProcessBundle\Entity\ProcessSchedule;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;

/**
* @extends ServiceEntityRepository<ProcessSchedule>
* @extends EntityRepository<ProcessSchedule>
*
* @method ProcessSchedule|null find($id, $lockMode = null, $lockVersion = null)
* @method ProcessSchedule|null findOneBy(mixed[] $criteria, string[] $orderBy = null)
* @method ProcessSchedule[] findAll()
* @method ProcessSchedule[] findBy(mixed[] $criteria, string[] $orderBy = null, $limit = null, $offset = null)
*/
class ProcessScheduleRepository extends ServiceEntityRepository
class ProcessScheduleRepository extends EntityRepository
{
public function __construct(ManagerRegistry $registry)
public function __construct(EntityManagerInterface $em)
{
parent::__construct($registry, ProcessSchedule::class);
parent::__construct($em, $em->getClassMetadata(ProcessSchedule::class));
}
}