diff --git a/src/Repository/MilestoneRepository.php b/src/Repository/MilestoneRepository.php deleted file mode 100644 index 4fecf627b..000000000 --- a/src/Repository/MilestoneRepository.php +++ /dev/null @@ -1,41 +0,0 @@ - - * - * @method Milestone|null find($id, $lockMode = null, $lockVersion = null) - * @method Milestone|null findOneBy(array $criteria, array $orderBy = null) - * @method Milestone[] findAll() - * @method Milestone[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) - */ -class MilestoneRepository extends ServiceEntityRepository -{ - public function __construct(ManagerRegistry $registry) - { - parent::__construct($registry, Milestone::class); - } - - public function save(Milestone $entity, bool $flush = false): void - { - $this->getEntityManager()->persist($entity); - - if ($flush) { - $this->getEntityManager()->flush(); - } - } - - public function remove(Milestone $entity, bool $flush = false): void - { - $this->getEntityManager()->remove($entity); - - if ($flush) { - $this->getEntityManager()->flush(); - } - } -} diff --git a/src/Repository/VersionRepository.php b/src/Repository/VersionRepository.php new file mode 100644 index 000000000..19195d95c --- /dev/null +++ b/src/Repository/VersionRepository.php @@ -0,0 +1,41 @@ + + * + * @method Version|null find($id, $lockMode = null, $lockVersion = null) + * @method Version|null findOneBy(array $criteria, array $orderBy = null) + * @method Version[] findAll() + * @method Version[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) + */ +class VersionRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Version::class); + } + + public function save(Version $entity, bool $flush = false): void + { + $this->getEntityManager()->persist($entity); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function remove(Version $entity, bool $flush = false): void + { + $this->getEntityManager()->remove($entity); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } +}