Luigi wrote: > Yes that's what I try first: > > $tests=$this->Resultat->findAll(null, > array( 'id', > 'IF ( message IS NULL , > NULL , 1)'), > null, > null, > null, > -1); > > pr($tests); > > Give me : > > [1] => Array ( [Resultat] => Array ( [id] => 103 ) [0] => Array ( [IF ( > message IS NULL , NULL , 1)] => ) ) [2] => Array ( [Resultat] => Array ( > [id] => 104 ) [0] => Array ( [IF ( message IS NULL , NULL , 1)] => 1 ) ) >
Try this: 'IF ( message IS NULL , NULL , 1) as sg' -- Ámon Tamás http://linkfelho.amon.hu --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
