我想用这个方法添加一个 where 子句。
public function fetchAll()
{
$resultSet = $this->select();
return $resultSet;
}
我已经添加了这样的。
public function fetchAll()
{
$resultSet = $this->select();
$resultSet->where("status = ?", 1);
return $resultSet;
}
但是,它显示了以下错误。
致命错误:调用未定义的方法 Zend\Db\ResultSet\ResultSet::where()
您能帮我用上述方法添加 WHERE、OR WHERE、GROUP 和 ORDER。