/** * decrement sql * * @return string */ public function decrementQuery() { $sql = 'UPDATE ' . $this->getFullTableName() . ' SET ' . $this->getBindField() . ' = ' . $this->getBindField() . ' - ' . $this->getBindValue() . ' ' . $this->db->getWhere() . ' ' . $this->db->getHaving() . ' ' . $this->db->getLimit(); return $sql; }