/** * @param $whereValue String * @return mixed */ public function update($whereValue) { $setString = "product_name = '" . $this->name . "', " . "product_description = '" . $this->description . "', " . "product_price = '" . $this->price . "', " . "product_quantity = '" . $this->quantity . "'"; return DbFunctions::updateEntityById('product', $setString, $whereValue); }