suivi/src/Repository/SpeakerRepositoryQuery.php

26 lines
681 B
PHP

<?php
namespace App\Repository;
use App\Core\Repository\RepositoryQuery;
use App\Repository\SpeakerRepository as Repository;
use Knp\Component\Pager\PaginatorInterface;
class SpeakerRepositoryQuery extends RepositoryQuery
{
public function __construct(Repository $repository, PaginatorInterface $paginator)
{
parent::__construct($repository, 's', $paginator);
}
public function withCalendar()
{
return $this
->andWhere('.caldavHost IS NOT NULL')
->andWhere('.caldavUsername IS NOT NULL')
->andWhere('.caldavPassword IS NOT NULL')
->andWhere('.caldavCalendarUri IS NOT NULL')
;
}
}