标签: zend-framework2 tablegateway
我想通过TableGateway删除多行,如下面的SQL
Delete from table where id in (1,2,5,6) - CSV of multiple ids.
答案 0 :(得分:0)
请参阅https://docs.zendframework.com/zend-db/table-gateway/上的文档 建立一个Where对象作为参数传递:
$where = new Where(); $where->in('id', [1,2,5,6]);