I have the following tables and would like to know how to do these two relations:
GIFT
gift_id
(...)
tag_id (rel - 1:1 -> tag: tag_id)
tag_id1 (rel - 1:1 -> tag: tag_id)
TAG
tag_id
(...)
genre (M, F)
================================================== ======
$ crud-> set_relation ('tag_id', 'tag', 'name', array ('genre' => 'M'));
$ crud-> display_as ('tag_id', 'Male tag');
working ok.
But if, (note tag_id1)
$crud->set_relation('tag_id','tag','nome', array('genero' => 'Masc'));
$crud->display_as('tag_id','Male tag');
$crud->set_relation('tag_id','tag','nome', array('genero' => 'Fem'));
$crud->display_as('tag_id1','Female tag');
Just apears Male tag, seems it doesnt find column tag_id1.
How can I do this?