Add fridge related entities

This commit is contained in:
Tim
2022-01-01 23:10:58 +01:00
parent d09cf430e1
commit 94ff83d89a
7 changed files with 240 additions and 3 deletions

View File

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