]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Repository/SessionRepository.php
Remove return field as we are able to use session to return to previous uri
[airbundle] / Repository / SessionRepository.php
index e295bfded1b385eed056d28c74c63b8f2a053447..9ffaf023e36ba8307942d0364cc92b4bfad051f4 100644 (file)
@@ -31,7 +31,7 @@ class SessionRepository extends \Doctrine\ORM\EntityRepository {
         *
         * @param $period The date period
         */
-       public function findByDatePeriod($period) {
+       public function findAllByDatePeriod($period) {
                //Fetch sessions
                $ret = $this->getEntityManager()
                        ->createQuery('SELECT s FROM RapsysAirBundle:Session s WHERE s.date BETWEEN :begin AND :end')