How to reduce the amount of fields for _joinData in Cake 3.x?
Situation Using Cake 3.2.4 I have a EventTicketSales table that $this->belongsToMany('Approvings', [ 'className' => 'Contacts', 'joinTable' => 'event_ticket_sales_approvings', 'targetForeignKey' => 'contact_id', 'saveStrategy' => 'replace', ]); When I do a pagination like this: $this->paginate['contain'] = [ 'Approvings' => function (\Cake\ORM\Query $query) { return $query->select([ 'Approvings.id', 'Approvings.name', 'Approvings.company', 'EventTicketSalesApprovings.event_ticket_sale_id' ]); } ]; $this->paginate['fields'] = [ 'EventTicketSales.id', 'EventTicketSales.event_id',