Replies: 1 comment 2 replies
-
Maybe this information is somewhere in the entity metadata? There should be a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I recently wrote a bundle for one of our applications, and I needed to find the doctrine repositories.
The services themselves are easy to find, since they're tagged, but the entity they're responsible for is not known easily by just looking at the service definition in the container.
Is it possible to somehow learn of what an entity is being provided by a repository service with the definition alone inside of a compiler pass?
Something like
In theory it should be possible by looking at the second parameter for each definition, right? But since one could simply use a custom repository I was wondering if there's another way.
Beta Was this translation helpful? Give feedback.
All reactions