Wednesday, August 27, 2014

Re: TranslateBehavior clarification

What happens if you try to select a few fields?

On Wednesday, August 27, 2014 3:05:28 PM UTC+2, Thomas von Hassel wrote:
Hey

In 2.x when you used translate, the table should not contain the field(s) that you were translating.

In 3.x it's not clear if this is still the case or if the table should have the fields that you are trying to translate. For instance, when the table has a translated field `name`, using find('list')->select(['id', 'name']) fails, but setting the locale and doing a find('all') correctly output the translated fields.



/thomas


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: