phalcon-datatables
phalcon-datatables copied to clipboard
searching not working with joins
If i use joins in builder then it does not filter content.
Here is my builder:
$builder = $this->modelsManager->createBuilder() ->columns('c.id, pt.ccexpiry, c.name') ->from(['pt' => 'Mtmpayments\Models\Paymenttokeninfo']) ->join('Mtmpayments\Models\Customers', 'c.id=pt.customerid', 'c'); $dataTables = new DataTable(); $dataTables->fromBuilder($builder)->sendResponse();
Any idea?