I dunno, it was just an idle thought. Keep in mind, though, that you can pass in all sorts of keys in your find() array and later manipulate that array. Have a look at this article to see what I mean:
http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-in-model-find Perhaps you could adapt that strategy to work with TranslatableBehavior in situations like yours. On Tue, Aug 4, 2009 at 6:16 AM, kicaj<[email protected]> wrote: > > @brian: How do this? > > On 28 Lip, 19:20, brian <[email protected]> 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<[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 -~----------~----~----~----~------~----~------~--~---
