Search code examples
phpsymfonydoctrinesonata-admin

Inline editable OneToOne relation in sonata admin bundle


The sonata admin bundle provides functionality to edit entities inline when they are associated by a OneToMany relation. See http://sonata-project.org/bundles/doctrine-orm-admin/master/doc/reference/form_field_definition.html#advanced-usage-one-to-many

Is there any way to get the same functionality for a OneToOne relation? So that I would be able to edit a child entity within my parent entity?


Solution

  • I think you must use sonata_type_admin as field form type ... http://sonata-project.org/bundles/doctrine-orm-admin/master/doc/reference/form_types_and_transformers.html