Saturday, March 28, 2009

Re: complex model associations

I implemented it and it works with one rather important drawback -
HABTM queries are made separately and I think I can't use sort in
pagination.

I was thinking... there's always only one associated instance in this
HABTM relationship (a ticket has only one value of color). If it was
possible to use belongsTo instead of HABTM, it would be one query. Is
it possible to use belongsTo when there is no foreign_key, but a
joinTable instead?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: