⚠ 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

How to Set Different Operator in the 4th Parameter of a setRelation Function?



larasmith
  • profile picture
  • Member

Posted 19 June 2018 - 04:55 AM

Hello Everyone,

 

Have you tried to use another operator such as "NOT LIKE or <>" in the 4th parameter as a where condition in the setRelation Function?

If so... kindly send it here how...

 

Thanks!

 


larasmith
  • profile picture
  • Member

Posted 19 June 2018 - 05:06 AM

Hello Everyone,

 

I finally figure it out:

$crud->setRelation('fieldA','tableB','fieldB',['fieldB1 <> ?'=>U03]);

 

Thanks!