ヤミRoot VoidGate
User / IP
:
216.73.216.81
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
/
src
/
Repository
/
Viewing: AnnounceChatRepository.php
<?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