Hi Norman
The way I normally format my conditions array is for example:
$conditions = array('Batch.id' => $id);
When the query runs Cake reformats 'Table.column' as `Table`.`column`.
This result is no ambiguity.
I have not constructed a LIKE condition, so I don't know about the right
hand side of the array, but I expect that you should be able to just do
the following:
$conditions[] = array('Candidato.nome' => "LIKE %{$search_term}%");
If the problem persists, it would be helpful if you could copy the SQL
that Cake is generating from the debug output and post it to this thread.
Regards,
Langdon
Norman wrote:
> I implent search fields using examples I found here in the group:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---