Commit 0342b7a3 authored by Andreas Heimann's avatar Andreas Heimann

add ad repository

parent a827e7ec
<?php
namespace App\Repository;
use App\Entity\Ad;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Common\Persistence\ManagerRegistry;
/**
* @method Ad|null find($id, $lockMode = null, $lockVersion = null)
* @method Ad|null findOneBy(array $criteria, array $orderBy = null)
* @method Ad[] findAll()
* @method Ad[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class AdRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Ad::class);
}
// /**
// * @return Ad[] Returns an array of Ad objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('a')
->andWhere('a.exampleField = :val')
->setParameter('val', $value)
->orderBy('a.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/
/*
public function findOneBySomeField($value): ?Ad
{
return $this->createQueryBuilder('a')
->andWhere('a.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment