简体   繁体   English

如何使用杂货店显示所有行?

[英]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. 我想在使用杂货杂货的fin_vendor_client表中看到既是供应商又是供应商的人。

 $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... 但是,仅向我显示entity = 1的供应商entity = 1 ,不向我显示...

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. 为客户和供应商提供2个布尔值,而不是一种ENUM类型,这样我就可以轻松获取供应商或客户或两者。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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