Re: i18n and belongsTo
Thanks for your reply. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: i18n and belongsTo
Right now, all behavior callbacks are executed only on 'primary' models, so there are only 2 possible solutions: #1 extra query - don't fetch associated group data by User->find() but call Group->find() with condition on known group ID (from previous User->find() query) #2 bind association Group hasOne SomeUser (className User) and query Group->find() with condition on SomeUser.id - fact that you'll use hasOne may looks weird (yes I know that Group hasMany User) but it should work fine, because hasOne association is fetched in one query (belongsTo is just other side of hasOne or hasMany association) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: i18n and belongsTo
I posted a ticket (#3680) for this issue. It looks we have to wait for this 'enhancement' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
i18n and belongsTo
Hi there, I have problem with i18n. I have model "user" which is belongsTo "group". I have model "group" where fields are localized: var $actsAs = array('Translate' => array('name','description')); When I load data from "user", I have any fields from "group" but not localized fields . CakePhp reads only from tables users and groups I read about Translate::bindTranslation, but this isn't work :o(. Do you have any solutions ? (Sorry for my bad english). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---