join('e.summit', 's') ->leftJoin('e.event_types', 'et'); return $query; } /** * @return array */ protected function getFilterMappings() { return [ 'name' => 'e.name:json_string', 'description' => 'e.description:json_string', 'label' => 'e.label:json_string', 'event_type' => 'et.type:json_string', 'summit_id' => new DoctrineLeftJoinFilterMapping("e.summit", "s" ,"s.id :operator :value") ]; } /** * @return array */ protected function getOrderMappings() { return [ 'id' => 'e.id', 'name' => 'e.name', 'label' => 'e.label', ]; } }