$this->grocery_crud->set_table('journee'); $this->grocery_crud->columns('date_saut', 'commentaire_journee'); $this->grocery_crud->set_subject('Journée de saut'); $this->grocery_crud->set_relation_n_n('VideoMan', 'journee_vdoman', 'vdoman', 'journee_id', 'vdoman_id', 'surnom'); $this->grocery_crud->set_relation_n_n('Pilotes Tandem', 'journee_piltdm', 'piltdm', 'journee_id', 'piltdm_id', 'surnom'); $this->grocery_crud->set_relation_n_n('acf', 'journee_acf', 'acf', 'journee_id', 'acf_id', 'modele'); $this->grocery_crud->set_relation_n_n('pilote', 'journee_pilote', 'pilote', 'journee_id', 'pilote_id', 'surnom'); $this->grocery_crud->set_relation_n_n('pax', 'journee_pax', 'pax', 'journee_id', 'pax_id', 'billet', 'priority'); $this->grocery_crud->display_as('date_saut','Date de saut'); $this->grocery_crud->display_as('commentaire_journee','Commentaire');
Bug on "Pilotes Tandem" (data not inserted in the relation table), meanwhile, if I use "PilotesTandem" (without space) it works !!
Hint for the space :
$this->grocery_crud->display_as('PilotesTandem','Pilotes Tandem');
spaces in relation name are not allowed, we need to use display_as instead.... I looked for a quite long time for this one ;-)