ヤミRoot VoidGate
User / IP
:
216.73.216.84
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: AnnounceChannelRepository.php
<?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(); } }
Coded With 💗 by
0x6ick