Filter on a field with two conditions.

2008-07-06 Thread JuniorCMS

Hi to all,

I have to translate this logic code to a CakePHP condition:

SELECT (all) WHERE field isNull or field LIKE %val;%

Thanks!

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Filter on a field with two conditions.

2008-07-06 Thread Mech7

There are 2 solutions posted here: 
http://groups.google.com/group/cake-php/web/faq
look under tricky habtm...

Personally I don't really like the solutions and prefer to use my own
query where i would do a normal join..

On Jul 6, 6:57 pm, JuniorCMS [EMAIL PROTECTED] wrote:
 Hi to all,

 I have to translate this logic code to a CakePHP condition:

 SELECT (all) WHERE field isNull or field LIKE %val;%

 Thanks!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---