简体   繁体   English

奏鸣曲管理捆绑中的内联可编辑OneToOne关系

[英]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. 奏鸣曲管理捆绑包提供了在通过OneToMany关系将实体关联时内联编辑实体的功能。 See http://sonata-project.org/bundles/doctrine-orm-admin/master/doc/reference/form_field_definition.html#advanced-usage-one-to-many 参见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? 有没有办法为OneToOne关系获得相同的功能? So that I would be able to edit a child entity within my parent entity? 这样我就可以在父实体中编辑子实体?

我认为您必须使用sonata_type_admin作为字段表单类型... http://sonata-project.org/bundles/doctrine-orm-admin/master/doc/reference/form_types_and_transformers.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM