Dear Jonathan,
thank you, for your answer. I thought first I wan't to ask in the
google group. But I think also it's an error in CakePHP.
Trust me, I'm the last one, who want to make things complicated. If I
use the Array directly, I the following error:
SQL Error: 1054: Unknown column 'Array' in 'where clause'
This is the pr( ) output of the array:
Array
(
[0] => 48531
[1] => 48529
[2] => 48527
)
I tried also to pack it in a deep array like Modell.field - but this
will got the same error message
SQL Error: 1054: Unknown column 'Array' in 'where clause'
Regards Thomas
On 1 Jun., 21:46, jstein <[email protected]> wrote:
> On Jun 1, 7:25 pm, havanna <[email protected]> wrote:
>
> > But if I use this one like
> > $conditions = array('OR' => array('Immobilien.zip' => array
> > ($svZipCodes)));
>
> Try to print the array: debug($conditions);
>
> You are telling cake, that the zip field should equal one string with
> your imploded zip codes.
>
> You are actually complicating things much more than needed. Simply use
> the array directly:
> $conditions = array('Immobilien.zip' => $saZipCodes);
>
> Regards
>
> Jonathan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---