/**
  * Delete an Ordenstyp entity
  */
 public function deleteAction()
 {
     if ($this->request->hasArgument('uUID')) {
         $uuid = $this->request->getArgument('uUID');
     }
     if (empty($uuid)) {
         $this->throwStatus(400, 'Required uUID not provided', null);
     }
     $ordens = count($this->ordenRepository->findByOrdenstyp($uuid));
     if ($ordens == 0) {
         $ordenstypObj = $this->ordenstypRepository->findByIdentifier($uuid);
         if (!is_object($ordenstypObj)) {
             $this->throwStatus(400, 'Entity Ordenstyp not available', null);
         }
         $this->ordenstypRepository->remove($ordenstypObj);
         $this->throwStatus(200, null, null);
     } else {
         $this->throwStatus(400, 'Due to dependencies Ordenstyp entity could not be deleted', null);
     }
 }