query = $query; } // getTicketsByUser public function getByUser($user) { $query = $this->query->create(); $query->filterByUser($user); return $query->find(); } }