You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 line
483B

  1. <?php
  2. namespace domain\Ticket\TicketMessage;
  3. use domain\_\AbstractRepositoryQuery;
  4. class TicketMessageRepositoryQuery extends AbstractRepositoryQuery
  5. {
  6. protected TicketMessageDefinition $definition;
  7. public function loadDependencies(): void
  8. {
  9. $this->loadDefinition(TicketMessageDefinition::class);
  10. }
  11. public function filterByTicketId(int $ticketId)
  12. {
  13. $this->andWhere(['ticket_message.id_ticket' => $ticketId]);
  14. return $this;
  15. }
  16. }