Hi, Your model definition looks fine. What does the SQL query output?
Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Thu, Nov 18, 2010 at 11:44 PM, Mariano C. <[email protected]>wrote: > I have a table called supports, with two fields: id and name. > > 1 single_s > 2 double_s > ... > > Support model is: > <?php > class Support extends AppModel > { > var $name = 'Support'; > var $hasMany = 'BooksUser'; > var $actsAs = array('Translate' => array('name')); > > function getAll() > { > $this->unbindModel(array('hasMany' => array('BooksUser'))); > $options = array > ( > 'fields' => array( > 'Support.id', > 'Support.name' > )); > > return $this->find('all', $options); > } > } > ?> > > I've created via shell the i18n table and filled with: > 1 eng Support 1 name Single support > 2 eng Support 2 name Double support > 3 ita Support 1 name Supporto singolo > 4 ita Support 2 name Supporto doppio > > I use the Config.language session to change locale, matter of fact all > static string will be changed when session is switched to the new > value. > Db string never change and always eng locale is returned if I exec the > getAll(). Why? > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
