ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
fixtures
/
assert
/
Viewing: Repository.tar
.gitignore 0000644 00000000000 15117741047 0006531 0 ustar 00 ActualiteRepository.php 0000644 00000002552 15117741047 0011303 0 ustar 00 <?php namespace App\Repository; use App\Entity\Actualite; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Actualite|null find($id, $lockMode = null, $lockVersion = null) * @method Actualite|null findOneBy(array $criteria, array $orderBy = null) * @method Actualite[] findAll() * @method Actualite[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class ActualiteRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Actualite::class); } // /** // * @return Actualite[] Returns an array of Actualite objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('a') ->andWhere('a.exampleField = :val') ->setParameter('val', $value) ->orderBy('a.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Actualite { return $this->createQueryBuilder('a') ->andWhere('a.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } AddressRepository.php 0000644 00000002526 15117741047 0010756 0 ustar 00 <?php namespace App\Repository; use App\Entity\Address; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Address|null find($id, $lockMode = null, $lockVersion = null) * @method Address|null findOneBy(array $criteria, array $orderBy = null) * @method Address[] findAll() * @method Address[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class AddressRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Address::class); } // /** // * @return Address[] Returns an array of Address objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('a') ->andWhere('a.exampleField = :val') ->setParameter('val', $value) ->orderBy('a.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Address { return $this->createQueryBuilder('a') ->andWhere('a.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } AnnounceRepository.php 0000644 00000002540 15117741047 0011133 0 ustar 00 <?php namespace App\Repository; use App\Entity\Announce; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Announce|null find($id, $lockMode = null, $lockVersion = null) * @method Announce|null findOneBy(array $criteria, array $orderBy = null) * @method Announce[] findAll() * @method Announce[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class AnnounceRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Announce::class); } // /** // * @return Announce[] Returns an array of Announce objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('a') ->andWhere('a.exampleField = :val') ->setParameter('val', $value) ->orderBy('a.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Announce { return $this->createQueryBuilder('a') ->andWhere('a.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } BackgroundRepository.php 0000644 00000002564 15117741047 0011452 0 ustar 00 <?php namespace App\Repository; use App\Entity\Background; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Background|null find($id, $lockMode = null, $lockVersion = null) * @method Background|null findOneBy(array $criteria, array $orderBy = null) * @method Background[] findAll() * @method Background[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class BackgroundRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Background::class); } // /** // * @return Background[] Returns an array of Background objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('b') ->andWhere('b.exampleField = :val') ->setParameter('val', $value) ->orderBy('b.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Background { return $this->createQueryBuilder('b') ->andWhere('b.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } BuildingOptionRepository.php 0000644 00000002634 15117741047 0012317 0 ustar 00 <?php namespace App\Repository; use App\Entity\BuildingOption; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method BuildingOption|null find($id, $lockMode = null, $lockVersion = null) * @method BuildingOption|null findOneBy(array $criteria, array $orderBy = null) * @method BuildingOption[] findAll() * @method BuildingOption[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class BuildingOptionRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, BuildingOption::class); } // /** // * @return BuildingOption[] Returns an array of BuildingOption objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('b') ->andWhere('b.exampleField = :val') ->setParameter('val', $value) ->orderBy('b.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?BuildingOption { return $this->createQueryBuilder('b') ->andWhere('b.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } BuildingTypeRepository.php 0000644 00000002610 15117741047 0011762 0 ustar 00 <?php namespace App\Repository; use App\Entity\BuildingType; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method BuildingType|null find($id, $lockMode = null, $lockVersion = null) * @method BuildingType|null findOneBy(array $criteria, array $orderBy = null) * @method BuildingType[] findAll() * @method BuildingType[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class BuildingTypeRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, BuildingType::class); } // /** // * @return BuildingType[] Returns an array of BuildingType objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('b') ->andWhere('b.exampleField = :val') ->setParameter('val', $value) ->orderBy('b.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?BuildingType { return $this->createQueryBuilder('b') ->andWhere('b.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } CommentaireRepository.php 0000644 00000002576 15117741047 0011641 0 ustar 00 <?php namespace App\Repository; use App\Entity\Commentaire; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Commentaire|null find($id, $lockMode = null, $lockVersion = null) * @method Commentaire|null findOneBy(array $criteria, array $orderBy = null) * @method Commentaire[] findAll() * @method Commentaire[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class CommentaireRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Commentaire::class); } // /** // * @return Commentaire[] Returns an array of Commentaire objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->orderBy('c.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Commentaire { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } CompanyRepository.php 0000644 00000002526 15117741047 0010777 0 ustar 00 <?php namespace App\Repository; use App\Entity\Company; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Company|null find($id, $lockMode = null, $lockVersion = null) * @method Company|null findOneBy(array $criteria, array $orderBy = null) * @method Company[] findAll() * @method Company[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class CompanyRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Company::class); } // /** // * @return Company[] Returns an array of Company objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->orderBy('c.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Company { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } ContactRepository.php 0000644 00000002526 15117741047 0010764 0 ustar 00 <?php namespace App\Repository; use App\Entity\Contact; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Contact|null find($id, $lockMode = null, $lockVersion = null) * @method Contact|null findOneBy(array $criteria, array $orderBy = null) * @method Contact[] findAll() * @method Contact[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class ContactRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Contact::class); } // /** // * @return Contact[] Returns an array of Contact objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->orderBy('c.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Contact { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } CountryRepository.php 0000644 00000002475 15117741047 0011037 0 ustar 00 <?php namespace App\Repository; use App\Entity\Country; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Country|null find($id, $lockMode = null, $lockVersion = null) * @method Country|null findOneBy(array $criteria, array $orderBy = null) * @method Country[] findAll() * @method Country[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class CountryRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Country::class); } // /** // * @return Country[] Returns an array of Country objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->orderBy('c.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ public function findOneByCode($value): ?Country { return $this->createQueryBuilder('c') ->andWhere('c.code = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } } CouponRepository.php 0000644 00000002514 15117741047 0010631 0 ustar 00 <?php namespace App\Repository; use App\Entity\Coupon; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Coupon|null find($id, $lockMode = null, $lockVersion = null) * @method Coupon|null findOneBy(array $criteria, array $orderBy = null) * @method Coupon[] findAll() * @method Coupon[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class CouponRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Coupon::class); } // /** // * @return Coupon[] Returns an array of Coupon objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->orderBy('c.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Coupon { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } LogsRepository.php 0000644 00000002470 15117741047 0010273 0 ustar 00 <?php namespace App\Repository; use App\Entity\Logs; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Logs|null find($id, $lockMode = null, $lockVersion = null) * @method Logs|null findOneBy(array $criteria, array $orderBy = null) * @method Logs[] findAll() * @method Logs[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class LogsRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Logs::class); } // /** // * @return Logs[] Returns an array of Logs objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('l') ->andWhere('l.exampleField = :val') ->setParameter('val', $value) ->orderBy('l.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Logs { return $this->createQueryBuilder('l') ->andWhere('l.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } PackageRepository.php 0000644 00000002526 15117741047 0010724 0 ustar 00 <?php namespace App\Repository; use App\Entity\Package; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Package|null find($id, $lockMode = null, $lockVersion = null) * @method Package|null findOneBy(array $criteria, array $orderBy = null) * @method Package[] findAll() * @method Package[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class PackageRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Package::class); } // /** // * @return Package[] Returns an array of Package objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('p') ->andWhere('p.exampleField = :val') ->setParameter('val', $value) ->orderBy('p.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Package { return $this->createQueryBuilder('p') ->andWhere('p.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } PartenariatRepository.php 0000644 00000002576 15117741047 0011650 0 ustar 00 <?php namespace App\Repository; use App\Entity\Partenariat; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Partenariat|null find($id, $lockMode = null, $lockVersion = null) * @method Partenariat|null findOneBy(array $criteria, array $orderBy = null) * @method Partenariat[] findAll() * @method Partenariat[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class PartenariatRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Partenariat::class); } // /** // * @return Partenariat[] Returns an array of Partenariat objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('p') ->andWhere('p.exampleField = :val') ->setParameter('val', $value) ->orderBy('p.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Partenariat { return $this->createQueryBuilder('p') ->andWhere('p.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } PaymentOptionRepository.php 0000644 00000003624 15117741047 0012177 0 ustar 00 <?php namespace App\Repository; use App\Entity\PaymentOption; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<PaymentOption> * * @method PaymentOption|null find($id, $lockMode = null, $lockVersion = null) * @method PaymentOption|null findOneBy(array $criteria, array $orderBy = null) * @method PaymentOption[] findAll() * @method PaymentOption[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class PaymentOptionRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, PaymentOption::class); } public function add(PaymentOption $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(PaymentOption $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } // /** // * @return PaymentOption[] Returns an array of PaymentOption objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('p') // ->andWhere('p.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('p.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?PaymentOption // { // return $this->createQueryBuilder('p') // ->andWhere('p.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } } PaymentRepository.php 0000644 00000003506 15117741047 0011005 0 ustar 00 <?php namespace App\Repository; use App\Entity\Payment; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<Payment> * * @method Payment|null find($id, $lockMode = null, $lockVersion = null) * @method Payment|null findOneBy(array $criteria, array $orderBy = null) * @method Payment[] findAll() * @method Payment[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class PaymentRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Payment::class); } public function add(Payment $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(Payment $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } // /** // * @return Payment[] Returns an array of Payment objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('p') // ->andWhere('p.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('p.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?Payment // { // return $this->createQueryBuilder('p') // ->andWhere('p.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } } RoomOptionRepository.php 0000644 00000002564 15117741047 0011500 0 ustar 00 <?php namespace App\Repository; use App\Entity\RoomOption; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method RoomOption|null find($id, $lockMode = null, $lockVersion = null) * @method RoomOption|null findOneBy(array $criteria, array $orderBy = null) * @method RoomOption[] findAll() * @method RoomOption[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class RoomOptionRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, RoomOption::class); } // /** // * @return RoomOption[] Returns an array of RoomOption objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('r') ->andWhere('r.exampleField = :val') ->setParameter('val', $value) ->orderBy('r.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?RoomOption { return $this->createQueryBuilder('r') ->andWhere('r.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } RoomTypeRepository.php 0000644 00000002540 15117741047 0011143 0 ustar 00 <?php namespace App\Repository; use App\Entity\RoomType; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method RoomType|null find($id, $lockMode = null, $lockVersion = null) * @method RoomType|null findOneBy(array $criteria, array $orderBy = null) * @method RoomType[] findAll() * @method RoomType[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class RoomTypeRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, RoomType::class); } // /** // * @return RoomType[] Returns an array of RoomType objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('r') ->andWhere('r.exampleField = :val') ->setParameter('val', $value) ->orderBy('r.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?RoomType { return $this->createQueryBuilder('r') ->andWhere('r.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } SubscriptionRepository.php 0000644 00000002610 15117741047 0012047 0 ustar 00 <?php namespace App\Repository; use App\Entity\Subscription; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Subscription|null find($id, $lockMode = null, $lockVersion = null) * @method Subscription|null findOneBy(array $criteria, array $orderBy = null) * @method Subscription[] findAll() * @method Subscription[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class SubscriptionRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Subscription::class); } // /** // * @return Subscription[] Returns an array of Subscription objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('s') ->andWhere('s.exampleField = :val') ->setParameter('val', $value) ->orderBy('s.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Subscription { return $this->createQueryBuilder('s') ->andWhere('s.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } TestimonyRepository.php 0000644 00000002552 15117741047 0011363 0 ustar 00 <?php namespace App\Repository; use App\Entity\Testimony; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Testimony|null find($id, $lockMode = null, $lockVersion = null) * @method Testimony|null findOneBy(array $criteria, array $orderBy = null) * @method Testimony[] findAll() * @method Testimony[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class TestimonyRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Testimony::class); } // /** // * @return Testimony[] Returns an array of Testimony objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('t') ->andWhere('t.exampleField = :val') ->setParameter('val', $value) ->orderBy('t.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Testimony { return $this->createQueryBuilder('t') ->andWhere('t.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } TownRepository.php 0000644 00000003137 15117741047 0010317 0 ustar 00 <?php namespace App\Repository; use App\Entity\Country; use App\Entity\Town; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Town|null find($id, $lockMode = null, $lockVersion = null) * @method Town|null findOneBy(array $criteria, array $orderBy = null) * @method Town[] findAll() * @method Town[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class TownRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Town::class); } // /** // * @return Town[] Returns an array of Town objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('t') ->andWhere('t.exampleField = :val') ->setParameter('val', $value) ->orderBy('t.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Town { return $this->createQueryBuilder('t') ->andWhere('t.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ public function findOneByName($value): ?Town { return $this->createQueryBuilder('c') ->andWhere('c.town_name = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } } UserRepository.php 0000644 00000006003 15117741047 0010301 0 ustar 00 <?php namespace App\Repository; use App\Entity\User; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\DBAL\Driver\PDO\Exception; use Doctrine\Persistence\ManagerRegistry; use Symfony\Component\Security\Core\Exception\UnsupportedUserException; use Symfony\Component\Security\Core\User\PasswordUpgraderInterface; use Symfony\Component\Security\Core\User\UserInterface; /** * @method User|null find($id, $lockMode = null, $lockVersion = null) * @method User|null findOneBy(array $criteria, array $orderBy = null) * @method User[] findAll() * @method User[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class UserRepository extends ServiceEntityRepository implements PasswordUpgraderInterface { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, User::class); } /** * Used to upgrade (rehash) the user's password automatically over time. */ public function upgradePassword(UserInterface $user, string $newEncodedPassword): void { if (!$user instanceof User) { throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', \get_class($user))); } $user->setPassword($newEncodedPassword); $this->_em->persist($user); $this->_em->flush(); } // /** // * @return User[] Returns an array of User objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('u') ->andWhere('u.exampleField = :val') ->setParameter('val', $value) ->orderBy('u.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ public function findOneBySomeField($value): ?User { return $this->createQueryBuilder('u') ->andWhere('u.email = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } public function getAllUser() { return $this->createQueryBuilder('u') ->orderBy('u.id', 'DESC') ->setMaxResults(10) ->getQuery() ->getResult() ; } public function activateUser($email) { $response = false; try { $qb = $this->_em->getRepository($this->_entityName)->createQueryBuilder('fe'); $qb->update(User::class) ->set('fe.enable', "enable") ->set('fe.active', "active") ->where('fe.email', 'email') ->setParameter('active', true) ->setParameter('enable', true) ->setParameter('email', $email) ->getQuery(); $this->_em->persist($qb); $this->_em->flush(); $response = true; } catch (Exception $e) { return 'An Error occured during save: ' .$e->getMessage(); } return $response; } } VisitorRepository.php 0000644 00000002526 15117741047 0011030 0 ustar 00 <?php namespace App\Repository; use App\Entity\Visitor; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Visitor|null find($id, $lockMode = null, $lockVersion = null) * @method Visitor|null findOneBy(array $criteria, array $orderBy = null) * @method Visitor[] findAll() * @method Visitor[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class VisitorRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Visitor::class); } // /** // * @return Visitor[] Returns an array of Visitor objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('v') ->andWhere('v.exampleField = :val') ->setParameter('val', $value) ->orderBy('v.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Visitor { return $this->createQueryBuilder('v') ->andWhere('v.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } EnableRepository.php 0000644 00000003471 15117741047 0010557 0 ustar 00 <?php namespace App\Repository; use App\Entity\Enable; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<Enable> * * @method Enable|null find($id, $lockMode = null, $lockVersion = null) * @method Enable|null findOneBy(array $criteria, array $orderBy = null) * @method Enable[] findAll() * @method Enable[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class EnableRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Enable::class); } public function add(Enable $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(Enable $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } // /** // * @return Enable[] Returns an array of Enable objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('e') // ->andWhere('e.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('e.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?Enable // { // return $this->createQueryBuilder('e') // ->andWhere('e.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } } PaymentProviderRepository.php 0000644 00000003656 15117741047 0012526 0 ustar 00 <?php namespace App\Repository; use App\Entity\PaymentProvider; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<PaymentProvider> * * @method PaymentProvider|null find($id, $lockMode = null, $lockVersion = null) * @method PaymentProvider|null findOneBy(array $criteria, array $orderBy = null) * @method PaymentProvider[] findAll() * @method PaymentProvider[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class PaymentProviderRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, PaymentProvider::class); } public function add(PaymentProvider $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(PaymentProvider $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } // /** // * @return PaymentProvider[] Returns an array of PaymentProvider objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('p') // ->andWhere('p.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('p.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?PaymentProvider // { // return $this->createQueryBuilder('p') // ->andWhere('p.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } } ResetPasswordRequestRepository.php 0000644 00000003531 15117741047 0013544 0 ustar 00 <?php namespace App\Repository; use App\Entity\ResetPasswordRequest; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; use SymfonyCasts\Bundle\ResetPassword\Model\ResetPasswordRequestInterface; use SymfonyCasts\Bundle\ResetPassword\Persistence\Repository\ResetPasswordRequestRepositoryTrait; use SymfonyCasts\Bundle\ResetPassword\Persistence\ResetPasswordRequestRepositoryInterface; /** * @extends ServiceEntityRepository<ResetPasswordRequest> * * @method ResetPasswordRequest|null find($id, $lockMode = null, $lockVersion = null) * @method ResetPasswordRequest|null findOneBy(array $criteria, array $orderBy = null) * @method ResetPasswordRequest[] findAll() * @method ResetPasswordRequest[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class ResetPasswordRequestRepository extends ServiceEntityRepository implements ResetPasswordRequestRepositoryInterface { use ResetPasswordRequestRepositoryTrait; public function __construct(ManagerRegistry $registry) { parent::__construct($registry, ResetPasswordRequest::class); } public function add(ResetPasswordRequest $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(ResetPasswordRequest $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function createResetPasswordRequest(object $user, \DateTimeInterface $expiresAt, string $selector, string $hashedToken): ResetPasswordRequestInterface { return new ResetPasswordRequest($user, $expiresAt, $selector, $hashedToken); } } FirebaseTokenRepository.php 0000644 00000003624 15117741047 0012112 0 ustar 00 <?php namespace App\Repository; use App\Entity\FirebaseToken; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<FirebaseToken> * * @method FirebaseToken|null find($id, $lockMode = null, $lockVersion = null) * @method FirebaseToken|null findOneBy(array $criteria, array $orderBy = null) * @method FirebaseToken[] findAll() * @method FirebaseToken[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class FirebaseTokenRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, FirebaseToken::class); } public function add(FirebaseToken $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(FirebaseToken $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } // /** // * @return FirebaseToken[] Returns an array of FirebaseToken objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('f') // ->andWhere('f.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('f.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?FirebaseToken // { // return $this->createQueryBuilder('f') // ->andWhere('f.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } } NotificationPushRepository.php 0000644 00000003673 15117741047 0012663 0 ustar 00 <?php namespace App\Repository; use App\Entity\NotificationPush; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<NotificationPush> * * @method NotificationPush|null find($id, $lockMode = null, $lockVersion = null) * @method NotificationPush|null findOneBy(array $criteria, array $orderBy = null) * @method NotificationPush[] findAll() * @method NotificationPush[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class NotificationPushRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, NotificationPush::class); } public function add(NotificationPush $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(NotificationPush $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } // /** // * @return NotificationPush[] Returns an array of NotificationPush objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('n') // ->andWhere('n.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('n.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?NotificationPush // { // return $this->createQueryBuilder('n') // ->andWhere('n.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } } BookingRoomRepository.php 0000644 00000006010 15117741047 0011606 0 ustar 00 <?php namespace App\Repository; use App\Entity\BookingRoom; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<BookingRoom> * * @method BookingRoom|null find($id, $lockMode = null, $lockVersion = null) * @method BookingRoom|null findOneBy(array $criteria, array $orderBy = null) * @method BookingRoom[] findAll() * @method BookingRoom[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class BookingRoomRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, BookingRoom::class); } public function add(BookingRoom $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(BookingRoom $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } // /** // * @return BookingRoom[] Returns an array of BookingRoom objects // */ public function findByPeriodField($start, $end): array { return $this->createQueryBuilder('b') ->where('b.createdAt > :start') ->andWhere('b.createdAt < :end') ->setParameter('start', $start) ->setParameter('end', $end) ->orderBy('b.id', 'ASC') // ->setMaxResults(10) ->getQuery() ->getResult() ;} // /** // * @return BookingRoom[] Returns an array of BookingRoom objects // */ public function findByPeriodRoomBook($start, $end,$room): array { return $this->createQueryBuilder('b') ->leftJoin('b.room', 'r') ->where('b.arrivalDate >= :start') ->andWhere('b.departureDate <= :end') ->andWhere('b.id = :room_id') ->setParameter('start', $start) ->setParameter('end', $end) ->setParameter('room_id', $room) ->orderBy('b.id', 'DESC') // ->setMaxResults(10) ->getQuery() ->getResult() ;} // /** // * @return BookingRoom[] Returns an array of BookingRoom objects // */ public function findByRoomBook($roomId): array { return $this->createQueryBuilder('b') ->leftJoin('b.room', 'r') ->Where('b.id = :room_id') ->setParameter('room_id', $roomId) ->orderBy('b.id', 'DESC') ->setMaxResults(10) ->getQuery() ->getResult() ;} // public function findOneBySomeField($value): ?BookingRoom // { // return $this->createQueryBuilder('b') // ->andWhere('b.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } } MediaObjectRepository.php 0000644 00000002576 15117741047 0011544 0 ustar 00 <?php namespace App\Repository; use App\Entity\MediaObject; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method MediaObject|null find($id, $lockMode = null, $lockVersion = null) * @method MediaObject|null findOneBy(array $criteria, array $orderBy = null) * @method MediaObject[] findAll() * @method MediaObject[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class MediaObjectRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, MediaObject::class); } // /** // * @return MediaObject[] Returns an array of MediaObject objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->orderBy('c.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?MediaObject { return $this->createQueryBuilder('c') ->andWhere('c.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ } RoomRepository.php 0000644 00000003512 15117741047 0010301 0 ustar 00 <?php namespace App\Repository; use App\Entity\Room; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Room|null find($id, $lockMode = null, $lockVersion = null) * @method Room|null findOneBy(array $criteria, array $orderBy = null) * @method Room[] findAll() * @method Room[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class RoomRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Room::class); } // /** // * @return Room[] Returns an array of Room objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('r') ->andWhere('r.exampleField = :val') ->setParameter('val', $value) ->orderBy('r.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Room { return $this->createQueryBuilder('r') ->andWhere('r.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ // /** // * @return Room[] Returns an array of Room objects // */ public function findRoomsByBuilding($building): array { return $this->createQueryBuilder('r') ->leftJoin('r.building', 'b') ->Where('b.id = :building_id') ->andWhere('b.active = :active') ->setParameter('building_id', $building) ->setParameter('active', true) ->orderBy('b.createdAt', 'DESC') ->getQuery() ->getResult() ;} } BuildingRepository.php 0000644 00000007106 15117741047 0011125 0 ustar 00 <?php namespace App\Repository; use App\Entity\Building; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Building|null find($id, $lockMode = null, $lockVersion = null) * @method Building|null findOneBy(array $criteria, array $orderBy = null) * @method Building[] findAll() * @method Building[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class BuildingRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Building::class); } // /** // * @return Building[] Returns an array of Building objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('b') ->andWhere('b.exampleField = :val') ->setParameter('val', $value) ->orderBy('b.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Building { return $this->createQueryBuilder('b') ->andWhere('b.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ public function findByTown($townId): array { return $this->createQueryBuilder('b') ->leftJoin('b.address', 'a') ->leftJoin('a.town', 't') ->Where('b.address_id = a.id') ->Where('t.town_id = :town_id') ->setParameter('town_id', $townId) ->orderBy('b.id', 'DESC') // ->setMaxResults(10) ->getQuery() ->getResult(); } public function findAllDetailByTown($townId, $buildId): array { if($buildId=="all"){ return $this->createQueryBuilder('b') ->leftJoin('b.company', 'cmp' ,'b.company_id = cmp.id') ->leftJoin('b.options', 'op', 'b.options_id = op.id') ->leftJoin('b.address', 'a','b.address_id = a.id') ->leftJoin('b.type', 'tp','b.type_id = tp.id') ->leftJoin('a.town', 't', 'a.town_id = t.id') ->leftJoin('b.picture1', 'pt', 'b.picture1_id = pt.id') ->where('t.id = :town_id') ->andWhere('b.active = :active') ->setParameter('town_id', $townId) ->setParameter('active', true) ->orderBy('op.notiriety', 'DESC') // ->setMaxResults(10) ->getQuery() ->getResult(); }else{ return $this->createQueryBuilder('b') ->leftJoin('b.company', 'cmp' ,'b.company_id = cmp.id') ->leftJoin('b.options', 'op', 'b.options_id = op.id') ->leftJoin('b.address', 'a','b.address_id = a.id') ->leftJoin('b.type', 'tp','b.type_id = tp.id') ->leftJoin('a.town', 't', 'a.town_id = t.id') ->leftJoin('b.picture1', 'pt', 'b.picture1_id = pt.id') ->where('t.id = :town_id') ->andWhere('tp.id = :type_id') ->andWhere('b.active = :active') ->setParameter('town_id', $townId) ->setParameter('active', true) ->setParameter('type_id', $buildId) ->orderBy('op.notiriety', 'DESC') // ->setMaxResults(10) ->getQuery() ->getResult(); } } } AnnounceChannelRepository.php 0000644 00000004517 15117741047 0012432 0 ustar 00 <?php namespace App\Repository; use App\Entity\AnnounceChannel; use App\Entity\User; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<AnnounceChannel> * * @method AnnounceChannel|null find($id, $lockMode = null, $lockVersion = null) * @method AnnounceChannel|null findOneBy(array $criteria, array $orderBy = null) * @method AnnounceChannel[] findAll() * @method AnnounceChannel[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class AnnounceChannelRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, AnnounceChannel::class); } public function add(AnnounceChannel $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(AnnounceChannel $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } // /** // * @return AnnounceChannel[] Returns an array of AnnounceChannel objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('a') // ->andWhere('a.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('a.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?AnnounceChannel // { // return $this->createQueryBuilder('a') // ->andWhere('a.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } public function findOneBySomeField($announceId, $userId): ?AnnounceChannel { return $this->createQueryBuilder('a') ->andWhere('a.announce = :announce') ->andWhere('a.createdBy = :user') ->setParameter('announce', $announceId) ->setParameter('user', $userId) ->getQuery() ->getOneOrNullResult(); } } AnnounceChatRepository.php 0000644 00000004375 15117741047 0011743 0 ustar 00 <?php namespace App\Repository; use App\Entity\AnnounceChannel; use App\Entity\AnnounceChat; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @extends ServiceEntityRepository<AnnounceChat> * * @method AnnounceChat|null find($id, $lockMode = null, $lockVersion = null) * @method AnnounceChat|null findOneBy(array $criteria, array $orderBy = null) * @method AnnounceChat[] findAll() * @method AnnounceChat[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class AnnounceChatRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, AnnounceChat::class); } public function add(AnnounceChat $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(AnnounceChat $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } // /** // * @return AnnounceChat[] Returns an array of AnnounceChat objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('a') // ->andWhere('a.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('a.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?AnnounceChat // { // return $this->createQueryBuilder('a') // ->andWhere('a.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } public function findOneBySomeField($channel): array { return $this->createQueryBuilder('a') ->andWhere('a.channel = :channel') ->setParameter('channel', $channel) ->Join('a.sendBy', 'user') ->orderBy('a.id', 'ASC') ->getQuery() ->getResult(); } }
Coded With 💗 by
0x6ick