I would say your schema needs some work as this seems way over-
complicated.  To be honest I am having difficulty understanding what
you're trying to achieve .. maybe providing the tables involved and
listing the relations you're using (wanting to use) would help me
understand.

Questions jumping to my mind so far are:
Is this really a HABTM association? It looks like it's possibly a
belongsTo association in which case you don't need a join table?

Why can it only be to one or the other model?

I would never advocate adding records into one table then specifying
ID ranges to allow relations to multiple models, you should be using
multiple tables (you're creating a lot more work for yourself by not
doing it this way) or adding a parent_model field to the join table.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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