Re: Question about findAll array

2007-05-15 Thread grigri
Heh I was thinking the exact same thing - I wrote a code submission for the bakery on this, but it's not been approved yet. In the meantime I've pasted the Behavior code here : http://pastebin.sk/en/1596/ Just add the $actsAs = array('SimpleResults') to any model and it'll work transparently.

RE: Question about findAll array

2007-05-15 Thread Mariano Iglesias
://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de grigri Enviado el: Martes, 15 de Mayo de 2007 09:36 a.m. Para: Cake PHP Asunto: Re: Question about findAll array Heh I was thinking the exact same thing - I wrote a code submission

Re: Question about findAll array

2007-05-15 Thread Dazweeja
Nice work, grigri. I'm fairly new to Cake and I thought that this would be such a common thing to do that it would form part of the core functionality. After all, if you are going to pass an array to any non- Cake-specific function - that is, to any external application or a non- Cake-specific

Question about findAll array

2007-05-14 Thread Dazweeja
I'm sure this is a newbie question but I've been unable find the answer. If I run findAll on a simple table with no joins, I get an array with an unnecessary middle level with the model name, eg. Array ( [0] = Array ( [User] = Array ( [id] = 1 [username] = user1 [emailaddress] = [EMAIL