Hi All,

The 'problem' using bind model is that you will get all ProductTypes,
with associated Products that match the constraint where they exist.
This means that you will get (if they exist) ProductTypes that don´t
have Products that match the constraint (because it´s using a left
join).

If you want ONLY ProductTypes that match your Product constraint, you
could consider this approach, which I posted this in another thread a
couple of days ago:
http://www.cakephp.org/pastes/show/abc17e6d6081dc7c2f91540668447d9f

HTH,

AD7six


--~--~---------~--~----~------------~-------~--~----~
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