Welcome Guest, Not a member yet? Register   Sign In
Join in controller method
#1

(This post was last modified: 07-05-2021, 04:17 AM by pippuccio76.)

Hi how can i do a join query on controller's method :

Code:
$this->select('tratte_acquistate.*');
        $this->select('tratte_acquistate_extra.*');
        $this->select('tratte_acquistate_passeggeri.*');
        $this->from('tratte_acquistate');
        $this->join('tratte_acquistate_extra', 'tratte_acquistate.id = tratte_acquistate_extra.id_tratte_acquistate');
        $this->join('tratte_acquistate_passeggeri', 'tratte_acquistate_passeggeri.id = tratte_acquistate_passeggeri.id_tratte_acquistate');

        $this->orderBy('Table_3.id');
        $result = $this->findAll();

        echo $this->db->getLastQuery();

        return $result;


Call to undefined method App\Controllers\Admin_tratte_acquistate:: select()
Reply


Messages In This Thread
Join in controller method - by pippuccio76 - 07-05-2021, 04:16 AM
RE: Join in controller method - by craig - 07-05-2021, 06:44 AM
RE: Join in controller method - by paliz - 07-05-2021, 12:13 PM
RE: Join in controller method - by ikesela - 07-05-2021, 12:22 PM
RE: Join in controller method - by pippuccio76 - 07-05-2021, 12:50 PM
RE: Join in controller method - by ikesela - 07-05-2021, 10:02 PM
RE: Join in controller method - by pippuccio76 - 07-06-2021, 03:54 AM
RE: Join in controller method - by manager - 07-05-2021, 10:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB