Hello, The project uses sonata admin (symfony2). Suppose there are 2 entities, they are interconnected as one-to-many. I need to display a list of the 1st entity in the form, and after selecting ajax or else how the related entries for the 2nd entity are loaded. Googled, scrolled the documentation, but did not find any options.

Ps with the symfony2 framework is not so long ago familiar. Perhaps this is a trivial problem solved quickly enough.

So tnank you :)

    3 answers 3

    The decision was on the surface and in the documentation itself. The documentation has everything

      The task is solved quickly, although I don’t know how to do it with the sonata (I never used it)

        if you plan to load ajax records, the one-to-many connection will not be useful here. From backend technologies you need an API that will return a set by id entity 1.
        Forming a drop-down list, I would trust the frontend , but maybe there are solutions here