<?php

namespace App\Repository;

use App\Entity\CollectionFractal;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
 * @extends ServiceEntityRepository<CollectionFractal>
 *
 * @method CollectionFractal|null find($id, $lockMode = null, $lockVersion = null)
 * @method CollectionFractal|null findOneBy(array $criteria, array $orderBy = null)
 * @method CollectionFractal[]    findAll()
 * @method CollectionFractal[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
 */
class CollectionFractalRepository extends ServiceEntityRepository
{
    public function __construct(ManagerRegistry $registry)
    {
        parent::__construct($registry, CollectionFractal::class);
    }
    

//    /**
//     * @return CollectionFractal[] Returns an array of CollectionFractal objects
//     */
//    public function findByExampleField($value): array
//    {
//        return $this->createQueryBuilder('v')
//            ->andWhere('v.exampleField = :val')
//            ->setParameter('val', $value)
//            ->orderBy('v.id', 'ASC')
//            ->setMaxResults(10)
//            ->getQuery()
//            ->getResult()
//        ;
//    }

//    public function findOneBySomeField($value): ?CollectionFractal
//    {
//        return $this->createQueryBuilder('v')
//            ->andWhere('v.exampleField = :val')
//            ->setParameter('val', $value)
//            ->getQuery()
//            ->getOneOrNullResult()
//        ;
//    }
}
