Ok
but what is the function to translate a condition in a piece of SQL's
query?

On 8 Lug, 12:51, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote:
> It's like this:
>
> array('Model.field LIKE' => '%'.$yourValue.'%')
>
> On Jul 8, 12:37 pm, "[EMAIL PROTECTED]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > I would use in a model the function of CAKE core that translates a
> > condition like for example
>
> > array('Model.field'=>'LIKE %value%');
>
> > in the SQL's format WHERE condition
>
> > `Model`.`field` LIKE '&value&'
>
> > Can somebody tell me what is this function and hoe can I use it inside
> > my model if it is possible?
>
> > Many thanks- Nascondi testo citato
>
> - Mostra testo citato
--~--~---------~--~----~------------~-------~--~----~
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