Re: database resultset without modelname

2007-08-22 Thread Charlie van de Kerkhof
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

Re: database resultset without modelname

2007-08-22 Thread [EMAIL PROTECTED]
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 --~--~-~--~-

Re: database resultset without modelname

2007-08-22 Thread AD7six
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