S
S
symnoob2021-04-01 09:27:01
symfony
symnoob, 2021-04-01 09:27:01

Entity in bunlde how to implement relation without dependencies?

Hello everyone, I need to write a bundle to create a personal Dashboard (a). Bundle will be used in several projects. But in all projects, the user class looks and is called differently, and the namespace user class is different everywhere. How can you implement entity with relation to user class without hard dependencies? I saw the possibility with ResolveTargetEntityListener, but is there any other possibility? And one more question, in the Symfony documentation in the Best practices for reusable bundles -> Directory Structure section it says “Doctrine orm entities (when not using annptations)” you can not use annotations for entities in a bundle?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2021-04-01
@symnoob

Do you need a connection to the levels of the associations mapping doctrine?
Something tells me that in fact - no;
and enough communication at the id (uuid) level between entities
60657ae9b337d223246268.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question