Reputation: 698
I am working with Sonata admin bundle and Symfony2.3.3. I have a parent table and a child table which has a foreign key linked. I have managed to create an 'Add new entry' button for the child table in the Parent admin's add/edit screen using the 'sonata_type_collection'. I want to know if it is possible to show the child table list in the same add/edit screen of the parent admin. I googled much but couldn't find a proper answer. I would really appreciate it if you guys could help me. Thanks.
Upvotes: 0
Views: 2090
Reputation: 2850
Try
->add('child', 'sonata_type_collection', array(), array(
'edit' => 'inline',
'inline' => 'table',
'sortable' => 'position'
))
Upvotes: 1