There is probably a simple solution and I am just missing something
fundamental.  Any help or insight you could give would be most
appreciated.

A generic overview of my structure is as follows:

modules
        id
        name
        module_type_id

module_types
        id
        type

menu
        id
        module_id
        name

quote
        id
        module_id
        name

feed
        id
        module_id
        name

Basically what I am trying to do is only have it search a table based
on a condition.  I'm just not sure how to setup the statement in the
model or the controller.  I have a table named modules and based on
the module_type_id I want to search either menu, quote, or feed
table.  If I just use a $hasOne association for menu, quote, and feed
within the Module Model, it searches each one every time.  How can I
limit it to only search the appropriate table?

hopefully that made sense


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

Reply via email to