Jump to content


Relation with many "where"

relation

  • Please log in to reply
1 reply to this topic

#1 marcelobbt

marcelobbt

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 26 December 2015 - 02:43 AM

I set a relation, but I want many "where" in this relation. It´s possible?
 
$crud->set_relation('IdEmpresa','empresas','Empresa',array('IdEmpresa' => $idempresas),'Empresa ASC');
 
The values of $idempresas would be at the same time 2 and 3 and 5, for example.

 

 



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 06 January 2016 - 02:46 AM

it is quite possible - the where clause u can add as many wheres as possible cuz it accepts an array. So you can set many array values (of wheres)... never worked on it but that surely should work.

 

Hay GCing :)







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users