0

I'm using ahDoctrineEasyEmbeddedRelationsPlugin to add dynamic i18n translations to my object, so I wrote this in my object Form class

$this->embedRelations(array(
'Translation' => array( 
'considerNewFormEmptyFields' => array('content', 'lang')
));

The result I got is only one input per record, "content".

I've tried this in the FormTranslation class, but no luck:

$this->useFields(array('content', 'lang'));

So what I did was to create a manual doctrine relation with a foreignAlias called "translations", and then:

$this->embedRelations(array(
'translations' => array( 
'considerNewFormEmptyFields' => array('content', 'lang')
));

this almost worked, I get the lang field now, but only in the list of existing tranlations, not in the new translation form

Any ideas if I can archieve this? Thanks!

4

1 に答える 1

0

うーん、私はいつも例えば「en」と「uk」のカルチャに使用します:

 considerNewFormEmptyFields' => array('en','uk')
于 2012-05-07T11:11:40.297 に答える