This repo is created for the SplendidBear Websites' portfolio. https://www.splendidbear.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.5KB

  1. <?php
  2. namespace App\Repository;
  3. use App\Entity\Project;
  4. use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
  5. use Doctrine\Persistence\ManagerRegistry;
  6. /**
  7. * Class ProjectRepository
  8. *
  9. * @package App\Repository
  10. * @author system7 <https://www.laszlolang.com>
  11. *
  12. * @method Project|null find($id, $lockMode = null, $lockVersion = null)
  13. * @method Project|null findOneBy(array $criteria, array $orderBy = null)
  14. * @method Project[] findAll()
  15. * @method Project[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
  16. */
  17. class ProjectRepository extends ServiceEntityRepository
  18. {
  19. /**
  20. * ProjectRepository constructor.
  21. *
  22. * @param ManagerRegistry $registry
  23. */
  24. public function __construct(ManagerRegistry $registry)
  25. {
  26. parent::__construct($registry, Project::class);
  27. }
  28. // /**
  29. // * @return Project[] Returns an array of Project objects
  30. // */
  31. /*
  32. public function findByExampleField($value)
  33. {
  34. return $this->createQueryBuilder('p')
  35. ->andWhere('p.exampleField = :val')
  36. ->setParameter('val', $value)
  37. ->orderBy('p.id', 'ASC')
  38. ->setMaxResults(10)
  39. ->getQuery()
  40. ->getResult()
  41. ;
  42. }
  43. */
  44. /*
  45. public function findOneBySomeField($value): ?Project
  46. {
  47. return $this->createQueryBuilder('p')
  48. ->andWhere('p.exampleField = :val')
  49. ->setParameter('val', $value)
  50. ->getQuery()
  51. ->getOneOrNullResult()
  52. ;
  53. }
  54. */
  55. }