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

2011-06-15 Thread LarsK
Great hint, was looking waiting this. Thanks for sharing! Will be some work to update all forms ... but happy that it works. I'm highly interested in how to validate these fields. Will take a look into this later :) Thanks, Lars On Jun 12, 6:46 pm, Stephan Petzl wrote: > someone gave me a hint

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

2011-06-13 Thread Problematic
It'll be in the request object. $this->get('request')->request->get('foo'); -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to th

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

2011-06-12 Thread winzou
Interesting, and then how do you use this kind of field? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send emai

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

2011-06-12 Thread Stephan Petzl
someone gave me a hint on IRC. use 'property_path' to specify properties which should not be mapped to the entity: $builder->add('recipientHashes','choice',array( 'property_path' => false, // this is a property which is not mapped directly to the object ));

[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 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 > validation constraints to