Ok, nevermind :) Simply the problem as above is when there is some entries with translated fields and then you add another field to Translate Behavior. The solution is to add this field to forms and re- save record - it'll create rows in i18n table with empty content. Works perfect.
On Aug 25, 12:39 pm, red <[email protected]> wrote: > Hi all, > I've following problem - simple model: Shop (id, url, title) and title > field can be translated and is not obligatory, so can be NULL. > > I've defined TranslateBehavior in Shop model like that: > public $actsAs = array( > 'Translate' => array( > 'title' => 'titleTranslation', > ) > ); > > Now when I want to list all Shops (index action) I'm getting 0 rows, > because the title is NULL and of course it's not translated. Is there > any way to using magic of TranslateBehavior for non-obligatory fields? > Any kind of "can-be-empty" flag? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
