Perhaps you could modify TranslateBehavior to look for a certain key
(eg. 'like') for this type of condition and rewrite the query to check
the appropriate table.

On Tue, Jul 28, 2009 at 8:55 AM, kicaj<[email protected]> wrote:
>
> Hi,
>
> I create table products width: id, name, desc, created, modified...
> I use i18n and Translate Behavior to translate data
> Then I drop field name and desc form products table, because will be
> wroten in i18n table.
>
> Now when i want use conditions like this:
> Product.name LIKE => '%keyword%' i get message: Unknown column
> 'Product.name' in 'where clause'
>
> How I can repaire this problem, any solution?
> >
>

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

Reply via email to