Преглед на файлове

Merge remote branch 'origin/name_detection' into name_detection

xaav преди 14 години
родител
ревизия
9e43a548f3

+ 0 - 0
app/console


+ 0 - 0
bin/vendors


+ 0 - 0
src/Packagist/WebBundle/Entity/Author.php


+ 0 - 34
src/Packagist/WebBundle/Entity/PackageRepository.php

@@ -1,34 +0,0 @@
-<?php
-
-/*
- * This file is part of Packagist.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *     Nils Adermann <naderman@naderman.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Packagist\WebBundle\Entity;
-
-use Doctrine\ORM\EntityRepository;
-use Doctrine\ORM\Mapping as ORM;
-use Symfony\Component\Validator\Constraints as Assert;
-
-/**
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class PackageRepository extends EntityRepository
-{
-    public function getStalePackages()
-    {
-        $qb = $this->getEntityManager()->createQueryBuilder();
-        $qb->select('p, v')
-            ->from('Packagist\WebBundle\Entity\Package', 'p')
-            ->leftJoin('p.versions', 'v')
-            ->where('p.crawledAt IS NULL OR p.crawledAt < ?0')
-            ->setParameters(array(new \DateTime('-1hour')));
-        return $qb->getQuery()->getResult();
-    }
-}

+ 0 - 0
src/Packagist/WebBundle/Entity/Requirement.php