Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function offerDeletedostAction($p){
- $doid = $this->getParam($p,"doid",DostepnoscOffer::class,true,[],null);
- if($this->allProvided()){
- if($doid != null && is_object($doid)){
- $doid->set("delete", DostepnoscOffer::DEL_YES);
- $this->dbEngine->persist($doid);
- $this->res("status","Success");
- }else{
- $this->res("error","Can't find any fields.");
- }
- }
- else{
- $this->res("error","Data missing");
- }
- return $this->response;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement