Add ItemExtra entity
This commit is contained in:
parent
ac248697ff
commit
53009471e1
4 changed files with 138 additions and 3 deletions
48
src/Repository/ItemExtraRepository.php
Normal file
48
src/Repository/ItemExtraRepository.php
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\ItemExtra;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
|
||||
/**
|
||||
* @extends ServiceEntityRepository<ItemExtra>
|
||||
*
|
||||
* @method ItemExtra|null find($id, $lockMode = null, $lockVersion = null)
|
||||
* @method ItemExtra|null findOneBy(array $criteria, array $orderBy = null)
|
||||
* @method ItemExtra[] findAll()
|
||||
* @method ItemExtra[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
||||
*/
|
||||
class ItemExtraRepository extends ServiceEntityRepository
|
||||
{
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
parent::__construct($registry, ItemExtra::class);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * @return ItemExtra[] Returns an array of ItemExtra objects
|
||||
// */
|
||||
// public function findByExampleField($value): array
|
||||
// {
|
||||
// return $this->createQueryBuilder('i')
|
||||
// ->andWhere('i.exampleField = :val')
|
||||
// ->setParameter('val', $value)
|
||||
// ->orderBy('i.id', 'ASC')
|
||||
// ->setMaxResults(10)
|
||||
// ->getQuery()
|
||||
// ->getResult()
|
||||
// ;
|
||||
// }
|
||||
|
||||
// public function findOneBySomeField($value): ?ItemExtra
|
||||
// {
|
||||
// return $this->createQueryBuilder('i')
|
||||
// ->andWhere('i.exampleField = :val')
|
||||
// ->setParameter('val', $value)
|
||||
// ->getQuery()
|
||||
// ->getOneOrNullResult()
|
||||
// ;
|
||||
// }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue