public function destroy($idType)
    {
        $hasReferences = $this->typeRepo->hasReferences($idType);
        $type = $this->typeRepo->find($idType);
        if ($type && !$hasReferences) {