find('23'); // // echo $orm->findAll(); // // echo $orm->findWhere([['calldate', '=', '2021-09-09']], $columns = []); // // echo $orm->update([['calldate' => '2021-09-09'], ['dcontext' => 'ROTASAINTE'], ['tipo_ligacao' => '33']], ['id_bilhete', 23]); // // echo $orm->create(['calldate' => '2021-09-09', 'uniqueid' => '123456789', 'dst' => '9811111111', 'src' => '987343333']); // // echo $orm->delete([], true); $orm->selectJoin( [ ['inner','pbx_eventos_dacs', 'uid2'], ['left','pbx_classificao', 'uniqueid'], ['rigth','pbx_queue', 'nome', 'pbx_eventos_dacs.fila'], ['inner','pbx_protocolo_reg', 'uniqueid'] ], [['pbx_bilhetes.calldate', 'LIKE','%2021-09-09'], ['pbx_bilhetes.dcontext', 'ROTASAINTE'], ['tipo_ligacao' , '33']], ['pbx_bilhetes.calldate', 'uniqueid', 'dst','src', 'tipo_ligacao']); $orm->orderby(['pbx_bilhetes.calldate', 'uniqueid', 'dst','src', 'tipo_ligacao']); echo $orm->limit(15); // -> LIMIT ORDER BY / GROUP BY / DISTINCT / echo "\n"; exit();