I have several Entities in SonataAdminBundle (Question, Article, News), to which I want to connect tags. I made it by a Many-To-Many relation with Tag entity for each of the entities. But for this it was necessary to create several intermediate junction tables, which is inconvenient.
I found a bundle FPNTagBundle, which allows to specify the junction table with an extra field ResourceType. This is just what I need, I did the same once in another project.
But FPNTagBundle establishes communication through separate TagManager, and does not work in SonataAdmin.
What do you advice me? How to implement this task?
Maybe not to worry, and leave a several separate junction tables? However, I will still be other half a dozen entities for tagging ... And I'm afraid that the search by tags in all tagged entities will be difficult to do - it will run across multiple tables.