| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | 
							- <?php
 
- namespace App\Repository;
 
- use App\Entity\CommonList;
 
- use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
 
- use Doctrine\Persistence\ManagerRegistry;
 
- /**
 
-  * @extends ServiceEntityRepository<CommonList>
 
-  */
 
- class CommonListRepository extends ServiceEntityRepository
 
- {
 
-     public function __construct(ManagerRegistry $registry)
 
-     {
 
-         parent::__construct($registry, CommonList::class);
 
-     }
 
-     public function save(CommonList $commonList, bool $flush = false): void
 
-     {
 
-         $this->getEntityManager()->persist($commonList);
 
-         if ($flush) {
 
-             $this->getEntityManager()->flush();
 
-         }
 
-     }
 
-     public function remove(CommonList $commonList, bool $flush = false): void
 
-     {
 
-         $this->getEntityManager()->remove($commonList);
 
-         if ($flush) {
 
-             $this->getEntityManager()->flush();
 
-         }
 
-     }
 
-     //    /**
 
-     //     * @return CommonList[] Returns an array of CommonList objects
 
-     //     */
 
-     //    public function findByExampleField($value): array
 
-     //    {
 
-     //        return $this->createQueryBuilder('c')
 
-     //            ->andWhere('c.exampleField = :val')
 
-     //            ->setParameter('val', $value)
 
-     //            ->orderBy('c.id', 'ASC')
 
-     //            ->setMaxResults(10)
 
-     //            ->getQuery()
 
-     //            ->getResult()
 
-     //        ;
 
-     //    }
 
-     //    public function findOneBySomeField($value): ?CommonList
 
-     //    {
 
-     //        return $this->createQueryBuilder('c')
 
-     //            ->andWhere('c.exampleField = :val')
 
-     //            ->setParameter('val', $value)
 
-     //            ->getQuery()
 
-     //            ->getOneOrNullResult()
 
-     //        ;
 
-     //    }
 
- }
 
 
  |