Thnx AD & Simon!
generateList is a good one but I couldn't get it working.
The Set::extract($res, '{n}.Artist.artist_id') worked like a charm! So
I will use that.
Thnx again!
- Charlie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
Charlie,
You could either use generateList instead of the findAll, or you could
use an afterFind, or a controller function to call
Set::extract('{n}.Artist.artist_id'). Check out the api / source for
the Set class in 1.2 to see lots of handy array manipulation tools.
Simon
--~--~-~--~-
On Aug 22, 11:24 am, Charlie van de Kerkhof <[EMAIL PROTECTED]>
wrote:
> Mybe in Cake 1.2 there is a function to get this result?
> Array
> (
> [0] => 4
> [1] => 17
> [2] => 23
> [3] => 28
> )
generatetList. Specify a constraint if necessary and whichever field
you want in the