Provide a command to show the repository for an entity #6057

Closed
opened 2026-01-22 15:25:47 +01:00 by admin · 1 comment
Owner

Originally created by @SimonHeimberg on GitHub (Sep 6, 2018).

Originally assigned to: @Ocramius on GitHub.

Feature Request

I do not find any debug command to show the repository for an entity.
Maybe the mapping info command could get a switch to list the repository as well.

Q A
New Feature yes
RFC yes/no
BC Break no

Summary

The output of doctrine mapping:info --repository could look like:

 [OK]   App\Entity\Comment    App\Repository\CommentRepository
 [OK]   App\Entity\Text       Doctrine\ORM\EntityRepository
Originally created by @SimonHeimberg on GitHub (Sep 6, 2018). Originally assigned to: @Ocramius on GitHub. ### Feature Request I do not find any debug command to show the repository for an entity. Maybe the mapping info command could get a switch to list the repository as well. | Q | A |------------ | ------ | New Feature | yes | RFC | yes/no | BC Break | no #### Summary The output of `doctrine mapping:info --repository` could look like: ``` [OK] App\Entity\Comment App\Repository\CommentRepository [OK] App\Entity\Text Doctrine\ORM\EntityRepository ```
admin added the New FeatureCan't Fix labels 2026-01-22 15:25:47 +01:00
admin closed this issue 2026-01-22 15:25:48 +01:00
Author
Owner

@Ocramius commented on GitHub (Sep 6, 2018):

Can't fix this: repositories are now retrieved by the RepositoryFactory, which is opaque and may as well instantiate any repository at all.

@Ocramius commented on GitHub (Sep 6, 2018): Can't fix this: repositories are now retrieved by the `RepositoryFactory`, which is opaque and may as well instantiate any repository at all.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6057