"Patches are welcome" ;-)

On Dec 25, 9:03 pm, MX <[EMAIL PROTECTED]> wrote:
> It would be very nice if Cake had polymorphism associations.
>
> On Dec 21, 3:09 pm, "subtropolis zijn" <[EMAIL PROTECTED]>
> wrote:
>
> > On Dec 21, 2007 6:04 AM, Chris Hawes <[EMAIL PROTECTED]> wrote:
>
> > > I have four tables: tasks, contacts, documents and companies.
>
> > > Multiple tasks can be assigned to either a contact, document or company.
>
> > > The problems is, I don't want to limit myself to just three tables,
> > > and I'd rather not have contact_id, document_id and company_id in my
> > > tasks table.
>
> > Create these tables:
> > contacts_tasks (contact_id, task_id)
> > documents_tasks (document_id, task_id)
> > companies_tasks (company_id, task_id)
>
> > If/when you add a new table just add a new lookup table as well.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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