51 lines
1.4 KiB
PHP
51 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Repository;
|
|
|
|
use App\Entity\Hygrometry;
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
use Doctrine\Common\Persistence\ManagerRegistry;
|
|
|
|
/**
|
|
* @method Hygrometry|null find($id, $lockMode = null, $lockVersion = null)
|
|
* @method Hygrometry|null findOneBy(array $criteria, array $orderBy = null)
|
|
* @method Hygrometry[] findAll()
|
|
* @method Hygrometry[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
*/
|
|
class HygrometryRepository extends ServiceEntityRepository
|
|
{
|
|
public function __construct(ManagerRegistry $registry)
|
|
{
|
|
parent::__construct($registry, Hygrometry::class);
|
|
}
|
|
|
|
// /**
|
|
// * @return Hygrometry[] Returns an array of Hygrometry objects
|
|
// */
|
|
/*
|
|
public function findByExampleField($value)
|
|
{
|
|
return $this->createQueryBuilder('h')
|
|
->andWhere('h.exampleField = :val')
|
|
->setParameter('val', $value)
|
|
->orderBy('h.id', 'ASC')
|
|
->setMaxResults(10)
|
|
->getQuery()
|
|
->getResult()
|
|
;
|
|
}
|
|
*/
|
|
|
|
/*
|
|
public function findOneBySomeField($value): ?Hygrometry
|
|
{
|
|
return $this->createQueryBuilder('h')
|
|
->andWhere('h.exampleField = :val')
|
|
->setParameter('val', $value)
|
|
->getQuery()
|
|
->getOneOrNullResult()
|
|
;
|
|
}
|
|
*/
|
|
}
|