src/Repository/BadgeRepository.php
/**
     * @param string $serie The name of the serie of which we want the badges
     *
     * @return Badge[] Returns an array of the Badges in the given serie
     */
@param string $serie The name of the serie of which we want the badges
@return Badge[] Returns an array of the Badges in the given serie
@param string $serie The name of the serie of which we want the badges @return Badge [] Returns an array of the Badges in the given serie
public function findFromSerie($serie)
    {
        return $this->createQueryBuilder('b')
            ->andWhere('b.serie = :serie')
            ->setParameter('serie', $serie)
            ->orderBy('b.level', 'ASC')
            ->getQuery()
            ->getResult()
        ;
    }
public function findFromSerie ( $ serie ) { return $ this -> createQueryBuilder ( 'b' ) -> andWhere ( 'b.serie = :serie' ) -> setParameter ( 'serie' , $ serie ) -> orderBy ( 'b.level' , 'ASC' ) -> getQuery ( ) -> getResult ( ) ; }
@param string $serie The name of the serie of which we want the badges
 @return Badge[] Returns an array of the Badges in the given serie
@param string $serie The name of the serie of which we want the badges @return Badge [] Returns an array of the Badges in the given serie