How apply extraOptions on contain tables ?
only the main table has the extraOptions ‘withColumnTypes’ => true, in query Object.
need it for beforeFind(); ArrayObject $options
my code
$invoice = $this->Invoices->get($id, [
'contain' => [
'Dataimports' => ['withColumnTypes' => true],
'Statuses',
'InvoiceCredits',
'InvoiceCredits'=>'Statuses',
'Dataimports'=>'Reportimports',
],
'withColumnTypes' => true
]);