2019-10-27 13:35:33 +01:00
|
|
|
<?php
|
2019-10-27 18:51:03 +01:00
|
|
|
/**
|
|
|
|
|
* This file is part of the SplendidBear Websites' projects.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 2019 @ www.splendidbear.org
|
|
|
|
|
*
|
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
|
*/
|
2019-10-27 13:35:33 +01:00
|
|
|
|
|
|
|
|
namespace App\Repository;
|
|
|
|
|
|
|
|
|
|
use App\Entity\Gamer;
|
|
|
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
2026-04-09 12:10:37 +02:00
|
|
|
use Doctrine\Persistence\ManagerRegistry;
|
2019-10-27 13:35:33 +01:00
|
|
|
|
|
|
|
|
/**
|
2019-10-27 18:51:03 +01:00
|
|
|
* Class GamerRepository
|
|
|
|
|
*
|
|
|
|
|
* @package App\Repository
|
|
|
|
|
* @author system7 <https://www.splendidbear.org>
|
2019-10-27 13:35:33 +01:00
|
|
|
*/
|
|
|
|
|
class GamerRepository extends ServiceEntityRepository
|
|
|
|
|
{
|
2019-10-27 18:51:03 +01:00
|
|
|
/**
|
|
|
|
|
* GamerRepository constructor.
|
|
|
|
|
*
|
|
|
|
|
* @param ManagerRegistry $registry
|
|
|
|
|
*/
|
2019-10-27 13:35:33 +01:00
|
|
|
public function __construct(ManagerRegistry $registry)
|
|
|
|
|
{
|
|
|
|
|
parent::__construct($registry, Gamer::class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
// * @return Gamer[] Returns an array of Gamer objects
|
|
|
|
|
// */
|
|
|
|
|
/*
|
|
|
|
|
public function findByExampleField($value)
|
|
|
|
|
{
|
|
|
|
|
return $this->createQueryBuilder('g')
|
|
|
|
|
->andWhere('g.exampleField = :val')
|
|
|
|
|
->setParameter('val', $value)
|
|
|
|
|
->orderBy('g.id', 'ASC')
|
|
|
|
|
->setMaxResults(10)
|
|
|
|
|
->getQuery()
|
|
|
|
|
->getResult()
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
public function findOneBySomeField($value): ?Gamer
|
|
|
|
|
{
|
|
|
|
|
return $this->createQueryBuilder('g')
|
|
|
|
|
->andWhere('g.exampleField = :val')
|
|
|
|
|
->setParameter('val', $value)
|
|
|
|
|
->getQuery()
|
|
|
|
|
->getOneOrNullResult()
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
}
|