Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

21 line
627B

  1. <?php
  2. namespace Lc\SovBundle\Repository\Ticket;
  3. use Knp\Component\Pager\PaginatorInterface;
  4. use Lc\SovBundle\Model\Ticket\TicketInterface;
  5. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  6. class TicketMessageRepositoryQuery extends AbstractRepositoryQuery implements TicketMessageRepositoryQueryInterface
  7. {
  8. public function __construct(TicketMessageRepository $repository, PaginatorInterface $paginator)
  9. {
  10. parent::__construct($repository, 'ticketMessage', $paginator);
  11. }
  12. public function filterByTicket(TicketInterface $ticket)
  13. {
  14. return $this->andWhereEqual('ticket', $ticket);
  15. }
  16. }