Command orm:debug:event-manager not found #7581

Closed
opened 2026-01-22 15:53:48 +01:00 by admin · 9 comments
Owner

Originally created by @laurentmuller on GitHub (Dec 20, 2025).

Bug Report

Q A
Version 3.6.0

Summary

With PR #12165, 2 commands was added:

  • orm:debug:event-manager
  • orm:debug:entity-listeners

Current behavior

When starting application, 2 errors are throw:

[Application] 20.12.2025 09:32:17.226|console|CRITICAL|Error thrown while running command ""orm:debug:event-manager"". Message: "There are no commands defined in the "orm:debug" namespace."|{"exception":"[object] (Symfony\\Component\\Console\\Exception\\NamespaceNotFoundException(code: 0): There are no commands defined in the \"orm:debug\" namespace. at vendor\\symfony\\console\\Application.php:694)","command":"\"orm:debug:event-manager\"","message":"There are no commands defined in the \"orm:debug\" namespace."}|[]
[Application] 20.12.2025 09:33:15.819|console|CRITICAL|Error thrown while running command ""orm:debug:entity-listeners"". Message: "There are no commands defined in the "orm:debug" namespace."|{"exception":"[object] (Symfony\\Component\\Console\\Exception\\NamespaceNotFoundException(code: 0): There are no commands defined in the \"orm:debug\" namespace. at vendor\\symfony\\console\\Application.php:694)","command":"\"orm:debug:entity-listeners\"","message":"There are no commands defined in the \"orm:debug\" namespace."}|[]

Expected behavior

No error reported.

How to reproduce

Just start application and check log file.

Originally created by @laurentmuller on GitHub (Dec 20, 2025). ### Bug Report | Q | A |-------------------------------------------- | ------ | Version | 3.6.0 #### Summary With PR #12165, 2 commands was added: - orm:debug:event-manager - orm:debug:entity-listeners #### Current behavior When starting application, 2 errors are throw: ```batch [Application] 20.12.2025 09:32:17.226|console|CRITICAL|Error thrown while running command ""orm:debug:event-manager"". Message: "There are no commands defined in the "orm:debug" namespace."|{"exception":"[object] (Symfony\\Component\\Console\\Exception\\NamespaceNotFoundException(code: 0): There are no commands defined in the \"orm:debug\" namespace. at vendor\\symfony\\console\\Application.php:694)","command":"\"orm:debug:event-manager\"","message":"There are no commands defined in the \"orm:debug\" namespace."}|[] [Application] 20.12.2025 09:33:15.819|console|CRITICAL|Error thrown while running command ""orm:debug:entity-listeners"". Message: "There are no commands defined in the "orm:debug" namespace."|{"exception":"[object] (Symfony\\Component\\Console\\Exception\\NamespaceNotFoundException(code: 0): There are no commands defined in the \"orm:debug\" namespace. at vendor\\symfony\\console\\Application.php:694)","command":"\"orm:debug:entity-listeners\"","message":"There are no commands defined in the \"orm:debug\" namespace."}|[] ``` #### Expected behavior No error reported. #### How to reproduce Just start application and check log file.
admin closed this issue 2026-01-22 15:53:49 +01:00
Author
Owner

@greg0ire commented on GitHub (Dec 20, 2025):

Can you run any of the commands listed here? If you are using Symfony, you probably want https://github.com/doctrine/DoctrineBundle/pull/2172 released.

@greg0ire commented on GitHub (Dec 20, 2025): Can you run _any_ of the commands listed [here](https://www.doctrine-project.org/projects/doctrine-orm/en/3.6/reference/tools.html#command-overview)? If you are using Symfony, you probably want https://github.com/doctrine/DoctrineBundle/pull/2172 released.
Author
Owner

@greg0ire commented on GitHub (Dec 20, 2025):

@HypeMC hi! I think the new commands should have been registered here: 2491c4b20d/src/Tools/Console/ConsoleRunner.php (L70-L91)

@greg0ire commented on GitHub (Dec 20, 2025): @HypeMC hi! I think the new commands should have been registered here: https://github.com/doctrine/orm/blob/2491c4b20d9439d2770f4e59b2560df0b1fe3652/src/Tools/Console/ConsoleRunner.php#L70-L91
Author
Owner

@HypeMC commented on GitHub (Dec 20, 2025):

@greg0ire Hi, I'll take a look, wasn't aware this existed 😄

@HypeMC commented on GitHub (Dec 20, 2025): @greg0ire Hi, I'll take a look, wasn't aware this existed 😄
Author
Owner

@laurentmuller commented on GitHub (Dec 20, 2025):

This is the output when I try to run command:

PS D:\Github\calculation> php bin/console orm:debug:entity-listeners

There are no commands defined in the "orm:debug" namespace.

@laurentmuller commented on GitHub (Dec 20, 2025): This is the output when I try to run command: > PS D:\Github\calculation> php bin/console orm:debug:entity-listeners > > > There are no commands defined in the "orm:debug" namespace. >
Author
Owner

@greg0ire commented on GitHub (Dec 20, 2025):

@laurentmuller you seem confused. I've been confused by this in the past as well, so I will write docs so that you understand better what's going on.

@greg0ire commented on GitHub (Dec 20, 2025): @laurentmuller you seem confused. I've been confused by this in the past as well, so I will write docs so that you understand better what's going on.
Author
Owner

@greg0ire commented on GitHub (Dec 20, 2025):

@laurentmuller hopefully this helps: https://github.com/doctrine/DoctrineBundle/pull/2173

@greg0ire commented on GitHub (Dec 20, 2025): @laurentmuller hopefully this helps: https://github.com/doctrine/DoctrineBundle/pull/2173
Author
Owner

@laurentmuller commented on GitHub (Dec 20, 2025):

Good.

My question now is: why aren't the two new commands included?

@laurentmuller commented on GitHub (Dec 20, 2025): Good. My question now is: why aren't the two new commands included?
Author
Owner

@greg0ire commented on GitHub (Dec 20, 2025):

For ConsoleRunner, that you could use in a custom binary as per the docs I linked, it was overlooked, see https://github.com/doctrine/orm/issues/12330#issuecomment-3677634802
For Symfony applications, they are if you use doctrine/doctrine-bundle 3.2.x, which has no stable release yet.

@greg0ire commented on GitHub (Dec 20, 2025): For `ConsoleRunner`, that you could use in a custom binary as per the docs I linked, it was overlooked, see https://github.com/doctrine/orm/issues/12330#issuecomment-3677634802 For Symfony applications, they are if you use `doctrine/doctrine-bundle` 3.2.x, which has no stable release yet.
Author
Owner

@laurentmuller commented on GitHub (Dec 21, 2025):

OK. We wait for version 3.2.x.

@laurentmuller commented on GitHub (Dec 21, 2025): OK. We wait for version 3.2.x.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7581