public function save() { $data = get_object_vars($this); $dbContext = new DBContext(); if (!$dbContext->setData("package", $data)) { return false; } return $dbContext->save(); }
public function save() { $data = get_object_vars($this); $dbContext = new DBContext(); if (!$dbContext->setData("servicerequest", $data, "service")) { return false; } return $dbContext->save(); }
public function save() { $data = get_object_vars($this); unset($data["date"]); $dbContext = new DBContext(); if (!$dbContext->setData("payment", $data)) { return false; } return $dbContext->save(); }