diff --git a/src/Command/DeleteRoleCommand.php b/src/Command/DeleteRoleCommand.php index f99eed3..4290bce 100644 --- a/src/Command/DeleteRoleCommand.php +++ b/src/Command/DeleteRoleCommand.php @@ -51,7 +51,7 @@ class DeleteRoleCommand extends Command } // Check if role is being used (optional safety check) - $usageCount = $this->entityManager->getRepository(\App\Entity\UserOrganizationApp::class) + $usageCount = $this->entityManager->getRepository(\App\Entity\UsersOrganizations::class) ->count(['role' => $role]); if ($usageCount > 0) {