Jump to content


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

GroceryCRUDEnterprise where setRelation operator

  • Please log in to reply
1 reply to this topic

#1 larasmith

larasmith

    Advanced Member

  • Members
  • PipPipPip
  • 199 posts
  • LocationPhilippines

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!

 



#2 larasmith

larasmith

    Advanced Member

  • Members
  • PipPipPip
  • 199 posts
  • LocationPhilippines

Posted 19 June 2018 - 05:06 AM

Hello Everyone,

 

I finally figure it out:

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

 

Thanks!







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users