arams for a field have been
> > > supported for quite some time in 1.2.x.x
>
> > > What DBO do you use ? MySQL?
>
> > > -Original Message-
> > > From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
>
> > > Of Charlie van de
arams for a field have been
> > supported for quite some time in 1.2.x.x
>
> > What DBO do you use ? MySQL?
>
> > -Original Message-
> > From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
>
> > Of Charlie van de Kerkhof
> > Sent: 26. september
EMAIL PROTECTED] On Behalf
Of Charlie van de Kerkhof
Sent: 26. september 2007 13:09
To: Cake PHP
Subject: Re: FindAll condition can not be an array?
@Mike: Yes, that is my workaround now. But I get an array from another
database and want to pass it to another db source for retrieval.
@Christian
> -Original Message-
> From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
>
> Of Charlie van de Kerkhof
> Sent: 26. september 2007 12:36
> To: Cake PHP
> Subject: FindAll condition can not be an array?
>
> Hi,
>
> (v1.2, latest SVN
To: Cake PHP
Subject: FindAll condition can not be an array?
Hi,
(v1.2, latest SVN version)
I try to pass an array to the findAll function like this:
$condition = array('id'=>array(2,5,6,9,12,45,78,43,76));
$this->Artist->findAll($condition);
But the Query is written to the
I think you want to use find 'id' IN (2,5,6,4,6,7,8);
$condition = array("id in (2,3,4,5,6,7,8)");
$this->Artist->findAll($condition);
Mike
On Sep 26, 11:35 am, Charlie van de Kerkhof <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> (v1.2, latest SVN version)
>
> I try to pass an array to the findAll f
Hi,
(v1.2, latest SVN version)
I try to pass an array to the findAll function like this:
$condition = array('id'=>array(2,5,6,9,12,45,78,43,76));
$this->Artist->findAll($condition);
But the Query is written to the database is:
SELECT * from Artist WHERE (2) AND (5) AND (6) AND (9) AND (12) AND