[symfony-users] [symfony2] Mixing entity and non-entity fields in a single form

2011-06-12 Thread Rytis Daugirdas
Hello, I have a form type that extends Symfony\Component\Form\AbstractType. I use it with an entity object. I'd like to add additional fields and validation constraints to the form, but calling $builder- add('extraField', ...) produces an error telling that added fields don't exist in the entity

[symfony-users] Re: Mixing entity and non-entity fields in a single form

2011-06-12 Thread Rytis Daugirdas
OK, it seems that form embedding functionality is what I'm looking for. On Jun 12, 1:13 pm, Rytis Daugirdas rytis.daugir...@gmail.com wrote: Hello, I have a form type that extends Symfony\Component\Form\AbstractType. I use it with an entity object. I'd like to add additional fields and