简体   繁体   中英

How to embed form in in sonata admin-generator of symfony2 bundle

I am using sonata-admin generator for one of my project.

I want to create a form which contains fields from two tables User and User_add.

My tables are like this:

USER: id,name,age,login_id,pwd,create_at,updated_at USER_ADD: id,user_id(FK from user),add_type,street,city,state,country,pin.

Now I want a single form so that, I should be able to insert data for both user as well as user_add using sonata admin generator.

Please suggest me some link if, I can get answer of this doubt.

Thanks in advance.

请检查http://forum.symfony-project.org/viewtopic.php?t=38120 ,它描述了item和itemDetail之间的理论一对一关系,以及如何使用sonata_type_admin从项目表单创建itemDetail的可能性。 。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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