Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.rec-app.app_1716798588
/
htdocs
/
src
/
Repository
/
//srv/data/trash/vhost_www.rec-app.app_1716798588/htdocs/src/Repository/PhoneModelRepository.php
<?php namespace App\Repository; use App\Entity\PhoneModel; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<PhoneModel> * * @method PhoneModel|null find($id, $lockMode = null, $lockVersion = null) * @method PhoneModel|null findOneBy(array $criteria, array $orderBy = null) * @method PhoneModel[] findAll() * @method PhoneModel[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class PhoneModelRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, PhoneModel::class); } /** * @return PhoneModel[] Returns an array of PhoneModel objects */ public function findLastFiveAdded() { return $this->createQueryBuilder('p') ->orderBy('p.id', 'DESC') ->setMaxResults(5) ->getQuery() ->getResult(); } }