Jump to content


two columns in set_relation_n_n

set_relation_n_n

  • Please log in to reply
No replies to this topic

#1 Robson

Robson

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 05 October 2016 - 10:28 PM

Hi!

 

I need to get two columns of an n relation to n (set_relation_n_n), but it returns me only one column.
 

$crud->set_relation_n_n('Unidades', 'pessoa_unidade', 'unidade', 'pessoa_id', 'unidade_id', 'nome_unidade');
 
The only column that returns me is nome_unidade though, I wanted to unidade_id column that is in pessoa_unidade table to use it in a or_where clause
.
 
Does anyone know how to do this without having to create a specific model for this?

 

Thanks.







Also tagged with one or more of these keywords: set_relation_n_n

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users