Re: TranslateBehavior clarification

2014-08-29 Thread José Lorenzo
Please ope a ticket, I will look why it is not working when selecting only 
a few fields

On Thursday, August 28, 2014 10:22:56 PM UTC+2, Thomas von Hassel wrote:
>
> Hey
>
> Sorry to bump this, but is there a verdict from the powers that be ? ;)
>
> /thomas
>
>
> On 27 Aug 2014, at 16:53, José Lorenzo  wrote:
>
> 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+unsubscr...@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.
>
>
>

-- 
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+unsubscr...@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.


Re: TranslateBehavior clarification

2014-08-28 Thread Thomas von Hassel
Hey

Sorry to bump this, but is there a verdict from the powers that be ? ;)

/thomas


On 27 Aug 2014, at 16:53, José Lorenzo  wrote:

> 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+unsubscr...@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.

-- 
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+unsubscr...@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.


Re: TranslateBehavior clarification

2014-08-27 Thread Thomas von Hassel
If i select fields in `select()` and the translated field is not present in the 
table i get an sql error complaining about the missing field

if i don't use select, all the translated fields are present in the resulting 
entity



On 27 Aug 2014, at 16:53, José Lorenzo  wrote:

> 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+unsubscr...@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.

-- 
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+unsubscr...@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.


Re: TranslateBehavior clarification

2014-08-27 Thread José Lorenzo
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+unsubscr...@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.


TranslateBehavior clarification

2014-08-27 Thread Thomas von Hassel
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+unsubscr...@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.