On 28 Lip, 19:20, brian <bally.z...@gmail.com> wrote:
> 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<ki...@kdev.pl> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Tuesday, August 4, 2009
Re: i18n and LIKE conditions
@brian: How do this?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment