Hi, you might want to check this: https://github.com/simplethings/SimpleThingsFormExtraBundle/blob/master/Form/Extension/FieldTypeHelpExtension.php
On Mon, Mar 19, 2012 at 5:42 PM, uwej711 <[email protected]> wrote: > Hi there, > > I try to setup a FormType with a custom translation domain. The first idea > was to implement getDefaultOptions on my FormType to return the > translation_domain: > > public function getDefaultOptions(array $options) > { > return array('translation_domain' => 'user'); > } > > But this actually does not work, since this attribute is not passed on to > the children and each child has it's own translation_domain which is set in > FieldType::getDefaultOptions. This requires me to add the translation > domain to each field added to the form (-type) and in case of extending > another type will leave me with little chance to change anything there. > > I know there are other ways to achieve the wished result, just wanted to > know whether this behaviour is by design? > > Cheers > Uwe > > -- > 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 developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- 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 developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
