Hello !
I want to filter the second table involved in a relation n_n.
$this->grocery_crud->set_table('journee'); $this->grocery_crud->columns('nom','date'); $this->grocery_crud->set_subject('Journée de saut'); $this->grocery_crud->set_relation_n_n('Pilotes Tandem', 'journee_piltdm', 'piltdm', 'journee_id', 'piltdm_id', 'surnom'); $this->grocery_crud->set_relation_n_n('VideoMan', 'journee_vdoman', 'vdoman', 'journee_id', 'vdoman_id', 'surnom'); $this->grocery_crud->set_relation_n_n('pax', 'journee_pax', 'pax', 'journee_id', 'pax_id', 'billet');
For the relation with "pax", I want to be able to show only certain passengers, and so to put a where clause on the related table (on field date also present on "journee".
How to do this ?