LettreRepository.php 468 Bytes
Newer Older
Mat's avatar
Mat committed
1
2
3
4
5
6
7
8
9
10
11
12
<?php

namespace PotageBundle\Repository;

/**
 * LettreRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class LettreRepository extends \Doctrine\ORM\EntityRepository
{
13
14
15
16
17
18
19
20
21
22
    
    /**
     * @return array Lettre
     */
    public function findAllForAPIRead()
    {
        $qb = $this->createQueryBuilder('l')
            ->orderBy('l.id', 'DESC');
        return $qb->getQuery()->getResult();
    }
Mat's avatar
Mat committed
23
}