mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
remove article drafts (feature moved to new releases)
This commit is contained in:
parent
da1e869be5
commit
ea9f7f1589
35 changed files with 9 additions and 4606 deletions
|
|
@ -65,20 +65,4 @@ class ActivityRepository extends ServiceEntityRepository
|
|||
->getSingleScalarResult()
|
||||
;
|
||||
}
|
||||
|
||||
public function findActivitiesTotalByArticleId(
|
||||
int $articleId,
|
||||
array $whitelist
|
||||
): int
|
||||
{
|
||||
return $this->createQueryBuilder('a')
|
||||
->select('count(a.id)')
|
||||
->where('a.articleId = :articleId')
|
||||
->andWhere('a.event IN (:event)')
|
||||
->setParameter(':articleId', $articleId)
|
||||
->setParameter(':event', $whitelist)
|
||||
->getQuery()
|
||||
->getSingleScalarResult()
|
||||
;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\ArticleDescription;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
|
||||
/**
|
||||
* @extends ServiceEntityRepository<ArticleDescription>
|
||||
*
|
||||
* @method ArticleDescription|null find($id, $lockMode = null, $lockVersion = null)
|
||||
* @method ArticleDescription|null findOneBy(array $criteria, array $orderBy = null)
|
||||
* @method ArticleDescription[] findAll()
|
||||
* @method ArticleDescription[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
||||
*/
|
||||
class ArticleDescriptionRepository extends ServiceEntityRepository
|
||||
{
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
parent::__construct($registry, ArticleDescription::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\Article;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
|
||||
/**
|
||||
* @extends ServiceEntityRepository<Article>
|
||||
*
|
||||
* @method Article|null find($id, $lockMode = null, $lockVersion = null)
|
||||
* @method Article|null findOneBy(array $criteria, array $orderBy = null)
|
||||
* @method Article[] findAll()
|
||||
* @method Article[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
||||
*/
|
||||
class ArticleRepository extends ServiceEntityRepository
|
||||
{
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
parent::__construct($registry, Article::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\ArticleSensitive;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
|
||||
/**
|
||||
* @extends ServiceEntityRepository<ArticleSensitive>
|
||||
*
|
||||
* @method ArticleSensitive|null find($id, $lockMode = null, $lockVersion = null)
|
||||
* @method ArticleSensitive|null findOneBy(array $criteria, array $orderBy = null)
|
||||
* @method ArticleSensitive[] findAll()
|
||||
* @method ArticleSensitive[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
||||
*/
|
||||
class ArticleSensitiveRepository extends ServiceEntityRepository
|
||||
{
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
parent::__construct($registry, ArticleSensitive::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\ArticleTitle;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
|
||||
/**
|
||||
* @extends ServiceEntityRepository<ArticleTitle>
|
||||
*
|
||||
* @method ArticleTitle|null find($id, $lockMode = null, $lockVersion = null)
|
||||
* @method ArticleTitle|null findOneBy(array $criteria, array $orderBy = null)
|
||||
* @method ArticleTitle[] findAll()
|
||||
* @method ArticleTitle[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
||||
*/
|
||||
class ArticleTitleRepository extends ServiceEntityRepository
|
||||
{
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
parent::__construct($registry, ArticleTitle::class);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue