Files
MineSeeker/src/Repository/GridRowRepository.php
T

51 lines
1.3 KiB
PHP
Raw Normal View History

<?php
namespace App\Repository;
use App\Entity\GridRow;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Common\Persistence\ManagerRegistry;
/**
* @method GridRow|null find($id, $lockMode = null, $lockVersion = null)
* @method GridRow|null findOneBy(array $criteria, array $orderBy = null)
* @method GridRow[] findAll()
* @method GridRow[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class GridRowRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, GridRow::class);
}
// /**
// * @return GridRow[] Returns an array of GridRow 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): ?GridRow
{
return $this->createQueryBuilder('g')
->andWhere('g.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}