loadDefinition(TicketMessageDefinition::class); } public function filterByTicketId(int $ticketId) { $this->andWhere(['ticket_message.id_ticket' => $ticketId]); return $this; } }