简体   繁体   中英

How to show all the rows using grocery crud?

I want to see the people that is vendor and both in of the table fin_vendor_client using grocery crud.

 $crud->set_relation('id_vendor', 'fin_vendor_client', 'name', 
                      array('id_entity' => 1, 'type' => 'Vendor' || 'Both'));

But only show me the vendor of the entity = 1 and do not show me...

Can someone help me please?

having 2 bool for client and vendor, instead of one ENUM type, this way i can easily get vendor or client or both. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM