Skip to content
Snippets Groups Projects
Select Git revision
  • bacdbd529ef0fcffa9c3971a615c2f9473ed1990
  • master default
  • datenotunique
  • archives
  • lastToucanUrl
  • urltitle-year
  • lets-hope-for-the-best
  • everything-is-fine
  • feature/change-pdf-endpoint
9 results

app.js

Blame
  • TeamRepository.php 674 B
    <?php
    /**
     * Created by PhpStorm.
     * User: jeremyguiselin
     * Date: 05/12/2016
     * Time: 13:01
     */
    
    namespace BackendBundle\Repository;
    
    use BackendBundle\Entity\Team;
    use Doctrine\ORM\EntityRepository;
    
    /**
     * TeamRepository
     *
     * This class was generated by the Doctrine ORM. Add your own custom
     * repository methods below.
     */
    
    class TeamRepository extends EntityRepository
    {
        public function getAll()
        {
            $qb = $this->createQueryBuilder('t');
            $qb->select('t');
    
            return $qb;
    
        }
    
        public function alreadyExists(Team $pack) : bool
        {
            return $this->findOneBy([
                'name' => $pack->getName()
            ]) !== null;
        }
    }