I am working on a sonata admin panel using symfony 3.3. I have two entities Category
and Chalets
. They are associated many to many so that One category have many Chalets and Chalet can be associated to many Categories.
I want the functionality in my admin panel to show the Chalets based on Category choosen from dropdown and a button to replicate the same to add another category with Chalets and so on.
The picture below will give you the deep insights. Picture of my current functionality
Right now all the Chalets added in the database are visible in the dropdown I want to show only the selected category Chalets to be shown. Alson, the button(Add more) will replicate the Category and Chalet to repeat the process. Thanks!