Hi,

if the current behaviour is not by design there is a little PR 
(https://github.com/symfony/symfony/pull/3649) that results in the 
behaviour I expected ... 
Otherwise I will check the field type extension mechanism ...

Cheers
Uwe


On Thursday, March 22, 2012 7:39:35 AM UTC+1, Hristo Salabashev wrote:
>
> 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 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

Reply via email to