Yes! That works!
Sometimes I'm trying to think in a cake way and think there is a
function or method somewhere, lol
On Feb 24, 5:52 pm, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> If you have Number -> belongsTo -> Person, have you tried:
>
> $this->Number->generateList(array('Number.person_id'=>null));
>
> Can you set your DEBUG to 2 and dump the SQL generated by the above query?
>
> -MI
>
> ---------------------------------------------------------------------------
>
> Remember, smart coders answer ten questions for every question they ask.
> So be smart, be cool, and share your knowledge.
>
> BAKE ON!
>
> blog:http://www.MarianoIglesias.com.ar
>
> -----Mensaje original-----
> De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
> deCynthia
> Enviado el: Sábado, 24 de Febrero de 2007 07:44 p.m.
> Para: Cake PHP
> Asunto: generateList for unused items only?
>
> Now I get *all* telephone numbers of course. I only want to list the
> ones which aren't assigned yet. Feeding it additional conditions
> doesn't work because it only looks inside the Numbers table...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---