I have two models in my Symfony application. First one is Blog:
Blog:
columns:
name: { type: string(20), notnull: true, unique: true }
title: { type: string(255), notnull: true }
description: { type: string(255), notnull: true }
admin_id: { type: bigint, notnull: true }
relations:
User:
class: sfGuardUser
local: admin_id
...
As you can see this model has a one-to-one relationship with sfGuardUser. I want the registration of these two take place in one form.
So I changed the BlogForm class and used embeddedRelation
method in it. So two forms just appear together. The problem is their view! User registration form (which is embedded in BlogForm) seems like child! I don't want this... I want the fields be at the same indent.
My form view is like this:
But I want something like this:
What is the best way to do this? Does it relate to FormFormatter?