Angejia\Pea\QueryBuilder::delete PHP Method

delete() public method

public delete ( $id = null )
    public function delete($id = null)
    {
        if ($this->needFlushCache()) {
            // 清空表级缓存
            $meta = $this->getMeta();
            $meta->flush($this->db(), $this->model->table());
            $this->flushAffectingRowCache();
        }
        return parent::delete($id);
    }