- ‹Bundles discussion • Sonata: Fatal error: Maximum function nesting level of '100'
- ›Symfony2 bundles confusion
Related talks
Posted on
Friday 24 May at 3:9AM by symfony framework forum
Posted on
Friday 24 May at 1:50AM by symfony framework forum
Posted on
Friday 24 May at 1:21AM by symfony framework forum



Symfony 1.4 embedded form fields at the same indent
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?
Read Full Article