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
-~----------~----~----~----~------~----~------~--~---