2019-03-01 12:18:06 +01:00
|
|
|
<?php
|
|
|
|
|
2019-03-01 12:49:26 +01:00
|
|
|
namespace Bluesquare\NotificationsBundle\Repository;
|
2019-03-01 12:18:06 +01:00
|
|
|
|
2019-03-01 12:49:26 +01:00
|
|
|
use Bluesquare\NotificationsBundle\Entity\BillingInvoice;
|
2019-03-01 12:18:06 +01:00
|
|
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
|
|
use Symfony\Bridge\Doctrine\RegistryInterface;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method BillingInvoice|null find($id, $lockMode = null, $lockVersion = null)
|
|
|
|
* @method BillingInvoice|null findOneBy(array $criteria, array $orderBy = null)
|
|
|
|
* @method BillingInvoice[] findAll()
|
|
|
|
* @method BillingInvoice[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
|
|
*/
|
|
|
|
class BillingInvoiceRepository extends ServiceEntityRepository
|
|
|
|
{
|
|
|
|
public function __construct(RegistryInterface $registry)
|
|
|
|
{
|
|
|
|
parent::__construct($registry, BillingInvoice::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
// /**
|
|
|
|
// * @return BillingInvoice[] Returns an array of BillingInvoice objects
|
|
|
|
// */
|
|
|
|
/*
|
|
|
|
public function findByExampleField($value)
|
|
|
|
{
|
|
|
|
return $this->createQueryBuilder('b')
|
|
|
|
->andWhere('b.exampleField = :val')
|
|
|
|
->setParameter('val', $value)
|
|
|
|
->orderBy('b.id', 'ASC')
|
|
|
|
->setMaxResults(10)
|
|
|
|
->getQuery()
|
|
|
|
->getResult()
|
|
|
|
;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
public function findOneBySomeField($value): ?BillingInvoice
|
|
|
|
{
|
|
|
|
return $this->createQueryBuilder('b')
|
|
|
|
->andWhere('b.exampleField = :val')
|
|
|
|
->setParameter('val', $value)
|
|
|
|
->getQuery()
|
|
|
|
->getOneOrNullResult()
|
|
|
|
;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
}
|