⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Relation with many "where"



marcelobbt

marcelobbt
  • profile picture
  • Member

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.

 

 


Amit Shah

Amit Shah
  • profile picture
  • Member

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 :)