|
@@ -239,33 +239,6 @@ class PackageRepository extends EntityRepository
|
|
|
return $qb->getQuery()->getSingleResult();
|
|
|
}
|
|
|
|
|
|
- public function getFullPackages(array $ids = null, $filters = array())
|
|
|
- {
|
|
|
- $qb = $this->getEntityManager()->createQueryBuilder();
|
|
|
- $qb->select('p', 'v', 't', 'a', 'req', 'devReq', 'sug', 'rep', 'con', 'pro')
|
|
|
- ->from('Packagist\WebBundle\Entity\Package', 'p')
|
|
|
- ->leftJoin('p.versions', 'v')
|
|
|
- ->leftJoin('v.tags', 't')
|
|
|
- ->leftJoin('v.authors', 'a')
|
|
|
- ->leftJoin('v.require', 'req')
|
|
|
- ->leftJoin('v.devRequire', 'devReq')
|
|
|
- ->leftJoin('v.suggest', 'sug')
|
|
|
- ->leftJoin('v.replace', 'rep')
|
|
|
- ->leftJoin('v.conflict', 'con')
|
|
|
- ->leftJoin('v.provide', 'pro')
|
|
|
- ->orderBy('v.development', 'DESC')
|
|
|
- ->addOrderBy('v.releasedAt', 'DESC');
|
|
|
-
|
|
|
- if (null !== $ids) {
|
|
|
- $qb->where($qb->expr()->in('p.id', ':ids'))
|
|
|
- ->setParameter('ids', $ids);
|
|
|
- }
|
|
|
-
|
|
|
- $this->addFilters($qb, $filters);
|
|
|
-
|
|
|
- return $qb->getQuery()->getResult();
|
|
|
- }
|
|
|
-
|
|
|
public function getPackagesWithVersions(array $ids = null, $filters = array())
|
|
|
{
|
|
|
$qb = $this->getEntityManager()->createQueryBuilder();
|