Thanks for your help.

Actually I already have many custom requests I would like to execute
with Cake, without rewriting them in the cake way.

Anyway, when I use the cake way (sorry for the french terms) :
$classementGeneral = $this->Email->findAll('GROUP BY Email.magasin ',
'magasin, count(email) as total', 'total DESC');

I get a fatal error :

Fatal error: Call to a member function on a non-object in
d:\projets\php\www\cake\libs\model\datasources\dbo_source.php on line
596

With "$debug=2" in my core file, i can see the SQL executed, who works
in phpmyadmin :

SELECT `Email`.`magasin`, count(email) as total FROM `emails` AS
`Email` GROUP BY `Email`.`magasin` ORDER BY `total` DESC

I'm lost. Did I do something wrong ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to